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.

AppendixC PredenedModule Thisappendixprovidesacompletelistingofthepredefined.ddenitions module.Thepredefinedmoduleisimplicitlyimportedbyall<strong>Hermes</strong> enforceassignment-styletyperules.Forexample,theoperationdescription modules.Itcontainsallthetypedenitionsrequiredbythecompilerto<br />

forthelatterisalsoincluded. thedenitionofprogrammakesuseofpredefined!processid,adenition causeitisreferencedinthetyperulesforcreate<strong>and</strong>procedure.Since function.Manytypesaredenedinpredefinedbecausethemodulemust predefined!integer.Thustheremustbeatypenamedintegerdened becompletelyself-contained.Forexample,typeprogramisincludedbe-<br />

inadenitionsmodulenamedpredefinedinorderforthecompilerto fortheinsert-atoperationrequiresthatthepositionargumentbeoftype<br />

predefined. writea<strong>Hermes</strong>applicationthatmakesnoexplicituseofanythingfrom chosenforinclusionistheonepresentedabove.Itisnotuncommonto provideacollectionoftypedenitionsthatpeoplewillndgenerallyuseful intheirprogramming.Theonlycriterionbywhichatypedenitionis whichisusedtorepresentabstract<strong>Hermes</strong>programs.Anyprogramthat intendstomanipulate<strong>Hermes</strong>programobjectsasdatawillnecessarilydependheavilyonthedenitionsinpredefined.<br />

Thevastmajorityofthemodulecentersaroundthetypepredefined!program, Itshouldbestressedthatthepredefinedmoduleisnotintendedto

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

Saved successfully!

Ooh no, something went wrong!