28.01.2015 Views

Hermes: A Tutorial and Reference Manual - Researcher - IBM

Hermes: A Tutorial and Reference Manual - Researcher - IBM

Hermes: A Tutorial and Reference Manual - Researcher - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Connect Theconnectstatementhastwooper<strong>and</strong>s.Therstoper<strong>and</strong>(beforethe keywordto)isanoutportvariable.Thesecondisaninportvariable.The simple{statement ::=connectoutport{variabletoinport{variable 11.<strong>Hermes</strong>Operations121<br />

inportvariablemustbeofthematchinginporttypeoftheoutportvariable outportvariableisassignedtoaconnectiontotheinportwhichisthe type,<strong>and</strong>mustbeinitialized. currentvalueoftheinportvariable. Call Thepreviousvalueoftheoutportvariable,ifany,isdiscarded.The simple{statement function{reference ::=calloutport{variablecall{arguments ::=call(outport{expression)call{arguments<br />

arguments.Theoutportmustbeinitialized.Thematchinginporttypemust haveanelementtypewhichisacallmessage.Theargumentsarematched guages.Theoper<strong>and</strong>softhecallstatementareanoutport<strong>and</strong>alistof Thecallstatementcorrespondstoaprocedurecallinconventionallan-<br />

association associated{pair ::=outport{primarycall{arguments<br />

used,thenthereshouldbeonefewerargumentthanparameter,themissingparameterbeingtheresult,whichispassedasanunnamedvariable.If<br />

uptothecallmessagecomponentseitherbyposition,ifpositionalnotation isused,orbyname,ifassociationnotationisused.Iffunctionnotationis positionalnotationisusedwithafunctioncall,thenthelastcallmessage componentistheresult.Ifassociationnotationisused,thentheomitted constantparameterswillbeloweredtoexactlymatchtheentrytypestate Eachargumentmusthaveatypestateatleastashighastheentrytypestate ofthecorrespondingparameter.Thetypestatesofargumentsmatching constantparameterswillremainunchanged. ofthecorrespondingparameter.Thetypestateofargumentsmatchingnon-<br />

call.Twovariablesoverlapifoneoftheirnamesisaprexoftheotheror theyarethesame. Eachargumentmusthaveatypematchingitscorrespondingparameter. Overlappingvariablescannotbepassedastwoormoreargumentsofa

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!