Changeset 172dba9c


Ignore:
Timestamp:
Nov 12, 2020, 2:08:39 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
86d55e66
Parents:
a104311
Message:

Change generator suspend then to give same output regardless of order or evaluation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/generator/suspend_then.cfa

    ra104311 r172dba9c  
    4040        Fibonacci f1, f2;
    4141        for ( 10 ) {                                                            // print N Fibonacci values
    42                 sout | next( f1 ) | next( f2 );
     42                int v1 = next( f1 );
     43                int v2 = next( f2 );
     44                sout | v1 | v2;
    4345        } // for
    4446}
Note: See TracChangeset for help on using the changeset viewer.