Changeset cc5cc27 for libcfa/src/bits/stack_example.cfa
- Timestamp:
- Dec 3, 2020, 12:11:44 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 2595df1, 7c243a5
- Parents:
- 63ec5fa (diff), 636d3715 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/bits/stack_example.cfa
r63ec5fa rcc5cc27 27 27 28 28 for ( i; 10 ) { 29 push( fred, new( 2 * i ) );29 push( fred, *new( 2 * i ) ); 30 30 } 31 31 … … 36 36 37 37 for ( i; 9 ) { 38 delete( pop( fred ) );38 delete( &pop( fred ) ); 39 39 } 40 40 … … 45 45 46 46 for ( i; 10 ) { 47 push( fred, new( 2 * i + 1 ) );47 push( fred, *new( 2 * i + 1 ) ); 48 48 } 49 49 for ( over( fredIter, fred ); fredIter >> f; ) { … … 78 78 79 79 for ( i; 10 ) { 80 push( mary, new( 2 * i ) );80 push( mary, *new( 2 * i ) ); 81 81 } 82 82 … … 87 87 88 88 for ( i; 9 ) { 89 delete( pop( mary ) );89 delete( &pop( mary ) ); 90 90 } 91 91 … … 96 96 97 97 for ( i; 10 ) { 98 push( mary, new( 2 * i + 1 ) );98 push( mary, *new( 2 * i + 1 ) ); 99 99 } 100 100 for ( over( maryIter, mary ); maryIter >> m; ) {
Note: See TracChangeset
for help on using the changeset viewer.