Ignore:
Timestamp:
Dec 3, 2020, 12:11:44 PM (3 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:
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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/bits/stack_example.cfa

    r63ec5fa rcc5cc27  
    2727       
    2828        for ( i; 10 ) {
    29                 push( fred, new( 2 * i ) );
     29                push( fred, *new( 2 * i ) );
    3030        }
    3131
     
    3636       
    3737        for ( i; 9 ) {
    38                 delete( pop( fred ) );
     38                delete( &pop( fred ) );
    3939        }
    4040
     
    4545       
    4646        for ( i; 10 ) {
    47                 push( fred, new( 2 * i + 1 ) );
     47                push( fred, *new( 2 * i + 1 ) );
    4848        }
    4949        for ( over( fredIter, fred ); fredIter >> f; ) {
     
    7878       
    7979        for ( i; 10 ) {
    80                 push( mary, new( 2 * i ) );
     80                push( mary, *new( 2 * i ) );
    8181        }
    8282
     
    8787       
    8888        for ( i; 9 ) {
    89                 delete( pop( mary ) );
     89                delete( &pop( mary ) );
    9090        }
    9191
     
    9696       
    9797        for ( i; 10 ) {
    98                 push( mary, new( 2 * i + 1 ) );
     98                push( mary, *new( 2 * i + 1 ) );
    9999        }
    100100        for ( over( maryIter, mary ); maryIter >> m; ) {
Note: See TracChangeset for help on using the changeset viewer.