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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

{{Ablockstatementqualieridentiesthescopeholdingthe {{constantwithintheblock,<strong>and</strong>alltheh<strong>and</strong>lersassociatedwiththe {{declarations<strong>and</strong>mainbodycodeoftheblock,therootobjectsheld {{block. AppendixC.PredenedModule205<br />

);h<strong>and</strong>lers:h<strong>and</strong>lers rootnames:tableofrootnameffullgkeys(*); {{Eachh<strong>and</strong>lernamestheexceptionsorexitconditionsthatit blockqualifier:record(<br />

{{h<strong>and</strong>les,<strong>and</strong>suppliesaclause(notascope)containingthebodyof constants:rootnames, scope:scopeid, {{exception<strong>and</strong>exith<strong>and</strong>lers {{newscopeintroducedbytheblock<br />

{{theh<strong>and</strong>ler. {{objectsnotchangedinthisscope<br />

h<strong>and</strong>lers:tableofh<strong>and</strong>lerffullgkeys(id); h<strong>and</strong>ler:record( );clause:clauseid {{H<strong>and</strong>lerscomeinfourvarieties... h<strong>and</strong>lertype:orderedenumeration( 'builtin', id:h<strong>and</strong>lername,<br />

);'others' {{Eachh<strong>and</strong>lertyperequirestype-specicadditionalinformationto {{fullyspecifytheconditionh<strong>and</strong>led 'user', 'exit', {{builtinexceptions {{userexceptions(dened<br />

h<strong>and</strong>lername:variantofh<strong>and</strong>lertype( {{withcallmessages) {{exitconditions<br />

'user'->user:userexceptionffullg, 'builtin'->builtin:builtinexceptionfinitg, {{exceptionsnototherwiseh<strong>and</strong>led<br />

'others'->others:emptyfg 'exit'->exit:exitidfinitg,

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

Saved successfully!

Ooh no, something went wrong!