Article View: comp.lang.modula2
Article #1505Re: mail delivery error
From: Larry Maturo
Date: Wed, 11 Nov 1992 13:49
Date: Wed, 11 Nov 1992 13:49
33 lines
2756 bytes
2756 bytes
In article <1992Nov11.102409.12183@jyu.fi> sakkinen@jyu.fi (Markku Sakkinen) writes: >In article <5897@balrog.ctron.com> smith@ctron.com writes: >>In article <9211091022.A01745@MAIL.CASI.NASA.GOV>, thutt@MAIL.CASI.NASA.GOV (thutt) writes: >>> ... >>I wouldn't classify enumerations as "superfluous", their removal is a real >>loss. But I think the real reason they went was because they are so difficult >>to type-extend. Type-extension is Oberon's "thing", and it would be most >>difficult to set up a mechanism wereby various enumerations were derived from >>previously-defined enumerations, where certain identifiers are valid for all, >>but not all identifiers are. > >That has obviously been the main reason for eliminating enumerations. >And even this rationale is very weak. Only record types can be extended >in Oberon, not atomic types nor arrays. > Enumerations are often used as the discriminent in variant records. In Oberon you declare different records that are extensions of a common record. You also delcare a different pointer type to each one and the type name of the pointer takes the place of the enumeration so you get the effect of enumerations, but it's extendable over module boundries. Pretty neat! +-----------------------------------+----------------------------------------+ | | | | Larry Maturo | Opinions expressed herein must be | | Tactical Simulation Division | yours, neither I nor my employer have | | Applied Research Laboratories | any. | | University of Texas at Austin | | | P.O. Box 8029 +----------------------------------------+ | Austin, Texas 78713-8029 | | | | When you're as great as I am it's hard | | larry@titan.tsd.arlut.utexas.edu | to be modest, but I succeed where | | | others fail. | +-----------------------------------+----------------------------------------+
Technical Details
Message-ID:
<1992Nov11.134940.19557@titan.tsd.arlut.utexas.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!mars.tsd.arlut.utexas.edu!larryReferences:
<9211091022.A01745@MAIL.CASI.NASA.GOV> <5897@balrog.ctron.com> <1992Nov11.102409.12183@jyu.fi>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.modula2 Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!mars.tsd.arlut.utexas.edu!larry From: larry@tsd.arlut.utexas.edu (Larry Maturo) Subject: Re: mail delivery error Message-ID: <1992Nov11.134940.19557@titan.tsd.arlut.utexas.edu> Sender: usenet@titan.tsd.arlut.utexas.edu Nntp-Posting-Host: eagle Organization: Applied Research Labs, The University of Texas at Austin References: <9211091022.A01745@MAIL.CASI.NASA.GOV> <5897@balrog.ctron.com> <1992Nov11.102409.12183@jyu.fi> Date: Wed, 11 Nov 1992 13:49:40 GMT Lines: 33