Article View: comp.lang.modula2
Article #77Redefining Predefined Types
From: Larry M. Jordan
Date: Fri, 31 Jul 1992 18:40
Date: Fri, 31 Jul 1992 18:40
14 lines
801 bytes
801 bytes
There has been a thread in comp.lang.pascal addressing the following
example:
type
foo = integer;
integer = 1..10;
Accoring to the 'Standard', the second declaration causes 'foo=integer'
to be an error (use before definition). I've seen Modula-2 code of the
above form (JPI). My question: What does the Modula-2 standard say
on this subject? Is the definition of 'integer=1..10', 'retroactive'
to the beginnging of the block?
--Larry %)
Technical Details
Message-ID:
<1992Jul31.184005.8606@aero.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!wupost!usc!aero.org!jordanShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!wupost!usc!aero.org!jordan From: jordan@aero.org (Larry M. Jordan) Newsgroups: comp.lang.modula2 Subject: Redefining Predefined Types Message-ID: <1992Jul31.184005.8606@aero.org> Date: 31 Jul 92 18:40:05 GMT Sender: news@aero.org Organization: The Aerospace Corporation Lines: 14