Changeset 35fc819 for doc/theses/mike_brooks_MMath/programs/hello-array.cfa
- Timestamp:
- Dec 13, 2025, 4:56:22 PM (4 days ago)
- Branches:
- master
- Children:
- 5d300ba
- Parents:
- 67748f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/programs/hello-array.cfa
r67748f9 r35fc819 89 89 90 90 forall( [M], [N] ) 91 void bad( array(float, M) &x, 92 array(float, N) &y ) { 91 void f( array(float, M) &x, array(float, N) &y ) { 93 92 f( x, x ); $\C[0.5in]{// ok}$ 94 93 f( y, y ); $\C{// ok}$ 95 96 94 f( x, y ); $\C{// error}\CRT$ 95 if ( M == N ) f( x, @(array( float, M ) &)@y ); $\C{// ok}\CRT$ 97 96 } 98 99 97 #endif 100 98 … … 109 107 110 108 forall( [M], [N] ) 111 void bad_fixed( array( float, M ) & x, 112 array( float, N ) & y ) { 109 void f( array( float, M ) & x, array( float, N ) & y ) { 113 110 f( x, x ); $\C[0.5in]{// ok}$ 114 111 f( y, y ); $\C{// ok}$ 115 if ( M == N ) 116 f( x, @(array( float, M ) &)@y ); $\C{// ok}\CRT$ 112 if ( M == N ) f( x, @(array( float, M ) &)@y ); $\C{// ok}\CRT$ 117 113 } 118 114 … … 132 128 133 129 forall( [M], [N] ) 134 void bad_ok_only( array(float, M) &x, 135 array(float, N) &y ) { 130 void bad_ok_only( array(float, M) &x, array(float, N) &y ) { 136 131 f( x, x ); 137 132 f( y, y );
Note:
See TracChangeset
for help on using the changeset viewer.