[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Gm2] Returning a string constant
From: |
Breeden, Thomas (tmb) |
Subject: |
RE: [Gm2] Returning a string constant |
Date: |
Mon, 27 Oct 2008 09:10:12 -0400 |
Hi all,
Actually, in ISO Standard Modula-2, it is legal.
One of the changes made from Wirth's definition of the language is that
functions can
return structured types.
I tried the test program out in my copy of the late, lamented, Stony Brook
compiler and
it compiled and ran perfectly.
I'm pretty much in sympathy with all the arguments against, but I feel that it
would be
better for M2 if GM2 did implement the ISO standard.
regards
Tom
address@hidden
See:
ISO/IEC 10514-1, the standard for Modula-2: changes, clarifications and
additions
Source ACM SIGPLAN Notices archive
Volume 31 , Issue 8 (August 1996)
Pages: 84 - 95
Year of Publication: 1996
ISSN:0362-1340
Authors
M. Schönhacker Vienna University of Technology, Austria
C. Pronk Delft University of Technology, The Netherlands
Publisher
ACM New York, NY, USA
> -----Original Message-----
> From: address@hidden [mailto:gm2-
> address@hidden On Behalf Of Andreas Fischlin
> Sent: October 26, 2008 10:26 AM
> To: Scott Robinson
> Cc: address@hidden
> Subject: Re: [Gm2] Returning a string constant
>
> Dear Scott,
>
> In standard Modula-2 yes, this is illegal. Wirth (1983) writes on p.
> 52: "Only one value, however, can be returned as the result of a
> function. This value, moreover, cannot be of a structured type."
- [Gm2] Returning a string constant, Scott Robinson, 2008/10/26
- Re: [Gm2] Returning a string constant, Andreas Fischlin, 2008/10/26
- Re: [Gm2] Returning a string constant, Iztok Kobal, 2008/10/27
- RE: [Gm2] Returning a string constant,
Breeden, Thomas (tmb) <=
- Re: [Gm2] Returning a string constant, Gaius Mulley, 2008/10/27
- RE: [Gm2] Returning a string constant, Breeden, Thomas (tmb), 2008/10/27
- Re: [Gm2] Returning a string constant, Gaius Mulley, 2008/10/27
- Re: [Gm2] Returning a string constant, Andreas Fischlin, 2008/10/28
- Re: [Gm2] Returning a string constant, Iztok Kobal, 2008/10/30
- Re: [Gm2] Returning a string constant, Christian Maurer, 2008/10/28