Ignore:
Timestamp:
May 7, 2025, 9:48:24 PM (5 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
ed0a7e5
Parents:
2c065ed
Message:

half way through proofreading array chapter

Location:
doc/theses/mike_brooks_MMath/programs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/programs/bkgd-cfa-arrayinteract.cfa

    r2c065ed r579427b  
    33
    44struct tm { int x; };
    5 forall (T*) T* alloc();
     5forall( T * ) T * alloc();
    66
    77int main () {
  • doc/theses/mike_brooks_MMath/programs/hello-accordion.cfa

    r2c065ed r579427b  
    3131int getPref( @School( C, S ) & school@, int is, int pref ) {
    3232        for ( ic; C ) {
    33                 int curPref = @school.preferences@[ic][is];   $\C{// offset calculation implicit}$
    34                 if ( curPref == pref ) return ic;
     33                if ( pref == @school.preferences@[ic][is]; ) return ic; $\C{// offset calculation implicit}$
    3534        }
    3635        assert( false );
    3736}
     37
    3838
    3939
     
    9191                sout | school.student_ids[is] | ": " | nonl;
    9292                for ( pref; 1 ~= nc ) {
    93                         int ic = getPref(school, is, pref);
     93                        int ic = getPref( school, is, pref );
    9494                        sout | school.course_codes[ ic ] | nonl;
    9595                }
Note: See TracChangeset for help on using the changeset viewer.