Changeset bd72f517 for doc/theses/mike_brooks_MMath/programs
- Timestamp:
- May 13, 2025, 1:17:50 PM (10 months ago)
- Branches:
- master, stuck-waitfor-destruct
- Children:
- 0528d79
- Parents:
- 7d02d35 (diff), 2410424 (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. - Location:
- doc/theses/mike_brooks_MMath/programs
- Files:
-
- 2 edited
-
bkgd-cfa-arrayinteract.cfa (modified) (1 diff)
-
hello-accordion.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/programs/bkgd-cfa-arrayinteract.cfa
r7d02d35 rbd72f517 3 3 4 4 struct tm { int x; }; 5 forall (T*) T* alloc();5 forall( T * ) T * alloc(); 6 6 7 7 int main () { -
doc/theses/mike_brooks_MMath/programs/hello-accordion.cfa
r7d02d35 rbd72f517 31 31 int getPref( @School( C, S ) & school@, int is, int pref ) { 32 32 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}$ 35 34 } 36 35 assert( false ); 37 36 } 37 38 38 39 39 … … 91 91 sout | school.student_ids[is] | ": " | nonl; 92 92 for ( pref; 1 ~= nc ) { 93 int ic = getPref( school, is, pref);93 int ic = getPref( school, is, pref ); 94 94 sout | school.course_codes[ ic ] | nonl; 95 95 }
Note:
See TracChangeset
for help on using the changeset viewer.