Changeset 231e1ae for src/Concurrency


Ignore:
Timestamp:
Mar 4, 2023, 1:45:49 PM (22 months ago)
Author:
caparsons <caparson@…>
Branches:
ADT, ast-experimental, master
Children:
809e058
Parents:
13f066d
Message:

changed actor send from | operator to << operator to avoid conflict with iostream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Actors.cpp

    r13f066d r231e1ae  
    4848        insideStruct = true;
    4949        parentDecl = mutate( decl );
    50         if( decl->name == "actor" ) *actorDecl = decl;
    51         if( decl->name == "message" ) *msgDecl = decl;
     50        if( decl->name == "actor" ) {
     51            if ( actorDecl ) actorStructDecls.insert( decl ); // skip inserting fwd decl
     52            *actorDecl = decl;
     53        }
     54        if( decl->name == "message" ) {
     55            if ( msgDecl ) messageStructDecls.insert( decl ); // skip inserting fwd decl
     56            *msgDecl = decl;
     57        }
    5258        if( decl->name == "request" ) *requestDecl = decl;
    5359        }
     
    311317            FunctionDecl * sendOperatorFunction = new FunctionDecl(
    312318                decl->location,
    313                 "?|?",
     319                "?<<?",
    314320                {},                     // forall
    315321                {
Note: See TracChangeset for help on using the changeset viewer.