home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!apple!mumbo.apple.com!apple!apple!lins
- From: lins@Apple.COM (Cheryl Lins)
- Newsgroups: comp.lang.modula2
- Subject: Re: Oberon Question
- Summary: enums & space
- Message-ID: <70661@apple.Apple.COM>
- Date: 30 Jul 92 17:21:46 GMT
- References: <z#pml+=.thomp@netcom.com>
- Organization: Apple Computer Inc., Cupertino, CA
- Lines: 29
-
- In article <z#pml+=.thomp@netcom.com> thomp@netcom.com (Thom Philabaum) writes:
- >Does Oberon support ennumerated types as in Pascal/Modula?
-
- No. Enums as a special construct are history.
-
- >If not, is there something that provides similar functionality?
-
- There are several techniques.
- 1. Use constants and named types.
- CONST red* = 0; green* = 1; blue* = 2;
- TYPE Colors* = SHORTINT;
- 2. Use objects. A class to represent colors, and one instance
- per color.
-
- There are probably other ideas too. And i don't want to hear any whining
- about how you lose type-checking. With a minimum of care on the programmer's
- part, this is a non-issue.
-
- >One of the boasts about
- >Oberon is that is doesn't require oodles of memory/diskspace and yet you
- >can't run it on what would seem to be sufficiently powerful machines.
-
- But Oberon does want lots of screen real estate. It seems they only envision
- Oberon as a desktop system. This is too bad, because I can easily imagine
- a PDA based on Oberon.
-
- --
- Cheryl Lins, Apple Computer, Inc. Oberon-2 Paladin lins@apple.com
- "Oppression breeds violence" - Front Line Assembly
-