home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / modula2 / 1373 < prev    next >
Encoding:
Text File  |  1992-11-11  |  2.6 KB  |  46 lines

  1. Newsgroups: comp.lang.modula2
  2. Path: sparky!uunet!cs.utexas.edu!mars.tsd.arlut.utexas.edu!larry
  3. From: larry@tsd.arlut.utexas.edu (Larry Maturo)
  4. Subject: Re: mail delivery error
  5. Message-ID: <1992Nov11.134940.19557@titan.tsd.arlut.utexas.edu>
  6. Sender: usenet@titan.tsd.arlut.utexas.edu
  7. Nntp-Posting-Host: eagle
  8. Organization: Applied Research Labs, The University of Texas at Austin
  9. References: <9211091022.A01745@MAIL.CASI.NASA.GOV> <5897@balrog.ctron.com> <1992Nov11.102409.12183@jyu.fi>
  10. Date: Wed, 11 Nov 1992 13:49:40 GMT
  11. Lines: 33
  12.  
  13. In article <1992Nov11.102409.12183@jyu.fi> sakkinen@jyu.fi (Markku Sakkinen) writes:
  14. >In article <5897@balrog.ctron.com> smith@ctron.com writes:
  15. >>In article <9211091022.A01745@MAIL.CASI.NASA.GOV>, thutt@MAIL.CASI.NASA.GOV (thutt) writes:
  16. >>> ...
  17. >>I wouldn't classify enumerations as "superfluous", their removal is a real
  18. >>loss.  But I think the real reason they went was because they are so difficult
  19. >>to type-extend.  Type-extension is Oberon's "thing", and it would be most
  20. >>difficult to set up a mechanism wereby various enumerations were derived from
  21. >>previously-defined enumerations, where certain identifiers are valid for all,
  22. >>but not all identifiers are.
  23. >
  24. >That has obviously been the main reason for eliminating enumerations.
  25. >And even this rationale is very weak.  Only record types can be extended
  26. >in Oberon, not atomic types nor arrays.
  27. >
  28. Enumerations are often used as the discriminent in variant records.  In Oberon
  29. you declare different records that are extensions of a common record.  You also
  30. delcare a different pointer type to each one and the type name of the pointer
  31. takes the place of the enumeration so you get the effect of enumerations, but
  32. it's extendable over module boundries.  Pretty neat!
  33.  
  34. +-----------------------------------+----------------------------------------+
  35. |                                   |                                        |
  36. | Larry Maturo                      | Opinions expressed herein must be      |
  37. | Tactical Simulation Division      | yours, neither I nor my employer have  |
  38. | Applied Research Laboratories     | any.                                   |
  39. | University of Texas at Austin     |                                        |
  40. | P.O. Box 8029                     +----------------------------------------+
  41. | Austin, Texas 78713-8029          |                                        |
  42. |                                   | When you're as great as I am it's hard |
  43. | larry@titan.tsd.arlut.utexas.edu  | to be modest, but I succeed where      |
  44. |                                   | others fail.                           |
  45. +-----------------------------------+----------------------------------------+
  46.