Up Next
Go up to 4 Structured Specifications
Go forward to 4.2 Union and Extension

4.1 Translation and Hiding

The symbols declared by a specification may be translated to different ones, and they may be hidden.
Translation is needed primarily to allow the reuse of specifications with change of notation, which is important since different applications may require the use of different notation for the same entities. But also when specifications that have been developed in parallel are to be combined, some notational changes may be needed for consistency.

Hiding symbols ensures that they are not available to the user of the specification, which is appropriate for symbols that denote auxiliary entities, introduced by the specifier merely to facilitate the specification, and not necessarily to be implemented. CASL provides two constructs for hiding: one where the symbols to be hidden are listed directly (other symbols remaining visible--although hiding a sort entails hiding all function and predicate symbols whose profile involves that sort), the other where only the symbols to be `revealed' are listed.


CoFI Document: CASL/Rationale --Version 0.97-- 20 May 1997.
Comments to cofi-language@brics.dk

Up Next