Article View: net.lang.mod2
Article #444Functions CAN return structured types. Really.
From: Joel McCormack
Date: Wed, 18 Jun 1986 05:04
Date: Wed, 18 Jun 1986 05:04
30 lines
1986 bytes
1986 bytes
Kevin Kleinfelter writes:
> Gleaves book is based on some chapters from the Volition Systems
> Modula-2 reference manual. (He wrote theses chapters while
> working for Volition Systems.) Thus his descriptions are biased
> in favor of his company's compiler.
While Rich Gleaves did indeed round out the introductory portion of the
Volition manual into his book, he nonetheless carefully maintained the
distinction between the actual Modula-2 language and Volition
restrictions/extensions.
Niklaus Wirth has stated that the restriction of return types to
scalars and pointers in the ETH compilers is just that, a restriction
of his implementations, and not of the language. The first half of
Rich's book was intended in part to make definite many of the fuzzier
points in Wirth's book, not to slyly pass off Volition's implementation
as the real language definition. Rich was in fact reluctant to state
outright that structured function results were part of the language
until Wirth had more publicly declared this so.
Unfortunately, this clarification (and many others) did not make it
into even the 3rd edition of the book. C'est la vie.
(And how do I speak so authoritatively? Volition's ex-President,
Rich's ex-roommate, and two trips to ETH.)
- Joel McCormack {ihnp4 decvax ucbvax allegra}!decwrl!joel
joel@decwrl.dec.com
Technical Details
Message-ID:
<8606180504.AA02111@vulcan.DEC.COM>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!ucbvax!DECWRL.DEC.COM!joelShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!ucbvax!DECWRL.DEC.COM!joel From: joel@DECWRL.DEC.COM (Joel McCormack) Newsgroups: net.lang.mod2 Subject: Functions CAN return structured types. Really. Message-ID: <8606180504.AA02111@vulcan.DEC.COM> Date: Wed, 18-Jun-86 01:04:00 EDT Article-I.D.: vulcan.8606180504.AA02111 Posted: Wed Jun 18 01:04:00 1986 Date-Received: Thu, 19-Jun-86 19:32:00 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 30