- Timestamp:
- Feb 7, 2025, 3:07:22 PM (7 weeks ago)
- Branches:
- master
- Children:
- 3ae2069
- Parents:
- eca364f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tests/collections/vector-demo.cfa ¶
reca364f7 r16d7535 7 7 8 8 push_last( v, 1 ); 9 printf( "Having pushed, length is % ld\n", v`length );9 printf( "Having pushed, length is %zu\n", v`length ); 10 10 11 11 float y = v[0]`val; … … 21 21 #ifdef TRY_MOD_WHILE_LOCKED_1 22 22 push_last( v, 1 ); // runtime assertion failure 23 printf( "Having pushed, length is % ld\n", v`length );23 printf( "Having pushed, length is %zu\n", v`length ); 24 24 #endif 25 25 } 26 26 27 27 push_last( v, 2 ); 28 printf( "Having pushed, length is % ld\n", v`length );28 printf( "Having pushed, length is %zu\n", v`length ); 29 29 30 30 // deletion scope for some exits … … 86 86 // allow modification while permits exist 87 87 push_last( v, 1 ); 88 printf( "Having pushed, length is % ld\n", v`length );88 printf( "Having pushed, length is %zu\n", v`length ); 89 89 90 90 // forbid passing permit by value … … 162 162 } 163 163 164 // todo: loop a permit164 // missing: loop a permit 165 165 } 166 166
Note: See TracChangeset
for help on using the changeset viewer.