- File:
-
- 1 edited
-
tests/collections/vector-demo.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/collections/vector-demo.cfa
rbada452 r55b060d 96 96 #endif 97 97 98 // forbid calling a function that returns permit by value99 #ifdef TRY_RETURN_PERMIT_BYVAL_1100 98 // can declare function that returns permit (wish to forbid) 101 99 vector_permit(float) g( vector( float ) & theVec ) { … … 103 101 } 104 102 103 // forbid calling a function that returns permit by value 104 #ifdef TRY_RETURN_PERMIT_BYVAL_1 105 105 vector_permit(float) ofG = g( v ); // Unique best alternative includes deleted identifier 106 106 #endif 107 107 108 108 // allow declaration of permit, populating from exit 109 109 vector_exit(float) h( vector( float ) & theVec ) {
Note:
See TracChangeset
for help on using the changeset viewer.