home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!usc!aero.org!jordan
- From: jordan@aero.org (Larry M. Jordan)
- Subject: Re: Is this legal - why/why not?
- Message-ID: <1992Jul30.184157.9500@aero.org>
- Sender: news@aero.org
- Organization: The Aerospace Corporation
- References: <1992Jul29.201359.4297@nntpd.lkg.dec.com> <Bs6L75.BDK@knot.ccs.queensu.ca> <1992Jul30.174037.6433@nntpd.lkg.dec.com>
- Date: Thu, 30 Jul 1992 18:41:57 GMT
- Lines: 31
-
- In article <1992Jul30.174037.6433@nntpd.lkg.dec.com> reagan@hiyall.enet.dec.com (John R. Reagan) writes:
- >
- >In article <Bs6L75.BDK@knot.ccs.queensu.ca>, dmurdoch@QueensU.CA (Duncan Murdoch) writes...
- >>
- [ stuff deleted ]
- >
- >Nope, I didn't make a typo. The Pascal standard doesn't discuss
- >"sequential" anything. The "INTEGER = 1..10" is a defining occurrance
- >of the identifier INTEGER for the entire region (the region goes backwards
- >to the beginning of the block). This definition of INTEGER retroactively
- >changes the previous use of INTEGER in the definition of FOO. You now
- >have a "use before declare" situation and thats illegal.
- >
- >Of course, noone claims that Turbo Pascal is standards conforming...
- >
-
- "Well, why didn't you say so?" (Wizard of Oz).
-
- John, can I do something like the following to get around the above problem:
-
- type
- foo = SYSTEM.integer;
- integer = 1..10;
-
- I don't have a copy of the Pascal Standard handy. Is there a way to
- explicitly qualify the predefined integer type?
-
-
- --Larry %)
-
-
-