Changeset 046ba23
- Timestamp:
- Mar 4, 2023, 1:47:38 PM (21 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 2856044a
- Parents:
- 809e058
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Actors.cpp
r809e058 r046ba23 229 229 return receiver; 230 230 } 231 */ // C_TODO: update this with new no alloc version231 */ 232 232 CompoundStmt * sendBody = new CompoundStmt( decl->location ); 233 233 … … 259 259 )); 260 260 261 // Function type is: Allocation (*)( actor &, mess sage & )261 // Function type is: Allocation (*)( actor &, message & ) 262 262 FunctionType * genericReceive = new FunctionType(); 263 263 genericReceive->params.push_back( new ReferenceType( new StructInstType( *actorDecl ) ) ); … … 265 265 genericReceive->returns.push_back( new EnumInstType( *allocationDecl ) ); 266 266 267 // Generates: Allocation (*fn)( actor &, mess sage & ) = (Allocation (*)( actor &, messsage & ))my_work_fn;267 // Generates: Allocation (*fn)( actor &, message & ) = (Allocation (*)( actor &, message & ))my_work_fn; 268 268 // More readable synonymous code: 269 269 // typedef Allocation (*__receive_fn)(actor &, message &);
Note: See TracChangeset
for help on using the changeset viewer.