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.

greater(continued) Description:Ifsource1comparesgreaterthansource2(numericallyor Qualier:absent resulttofalse. viaanenumerationordering),thensetresulttotrue.Otherwiseset AppendixB.<strong>Hermes</strong>Operations173<br />

greater{equal(result,source1,source2) TypeRules: Preconditions: source12orderedscalar result2boolean source1source2 source22orderedscalar Exceptions:Depletion Seex11.4,p.105<br />

Description:Ifsource1comparesgreaterthanorequaltosource2(nu-<br />

Qualier:absent mericallyorviaanenumerationordering),thensetresulttotrue.Oth-<br />

erwisesetresulttofalse. init(source2) init(source1) Postconditions: makeinit(result) var(result) hide(variant) TypeRules: Preconditions: variant2variant Seex11.4,p.105<br />

Description:Removetypestateattributesasrequiredbythepostconditions.Runtimecoercionsmayresult,butotherwisethereisnoruntime<br />

init(variant) Postconditions: dropcomponents(variant) Exceptions:|<br />

Qualier:absent if() TypeRules:SeeSpecialRules Preconditions:SeeSpecialRulesPostconditions:SeeSpecialRules eect. Seex11.7,p.117 Exceptions:|

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

Saved successfully!

Ooh no, something went wrong!