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.

willbeuninitialized,<strong>and</strong>thedestinationvariablewillhavethetypestate thenmovedintothedestinationvariable.Aftertheoperation,thevariant attributesofthevariantcomponent. Reveal 11.<strong>Hermes</strong>Operations117<br />

Therevealstatementrevealsahiddenvariantcomponent.Theoper<strong>and</strong> coercedbacktohidden. exists,thenthatcomponentisrevealed.Ifthecaseofthevariantissuch thatthecomponentbeingrevealeddoesnotexist,theexceptionCaseError isavariantcomponent.Thevariantmustbehidden|ifitisrevealed,itis Ifthecaseofthevariantissuchthatthecomponentbeingrevealed simple{statement<br />

israised,<strong>and</strong>thevariantremainshidden. ::=revealvariant{component<br />

usually)generatedautomaticallyasaresultofacoercionwhichdropsthe caseattribute. Thehideoperationisacoercion.Itcanbeexplicitlycoded,or(more Hide<br />

Itmustbeinitialized.Afterexecutingthestatement,thevariantwillbe hidden. Thesingleoper<strong>and</strong>ofahidestatementisavariableofvarianttype. simple{statement ::=hidevariant{variable<br />

Thecaseofoperatortakesavariantasoper<strong>and</strong><strong>and</strong>returnsthecaseof Case thevariant.Theresultisavalueofthevariant'scasetype. secondary::=caseofsecondary

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

Saved successfully!

Ooh no, something went wrong!