[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] Use of functions in expressions
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] Use of functions in expressions |
Date: |
16 Nov 2008 22:58:15 +0000 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
Andreas Fischlin <address@hidden> writes:
> Hi Scott,
>
> Exactly because of such rather messy code did Wirth in his original
> language defintion NOT allow for such constructs. That some compilers
> accept such code is actually only due to the ISO standard of
> Modula-2. Prior to this your first formulation was not legal either
> and since I am not an adept with the ISO standard, I have no strong
> opinions about the pros and cons of this ISO extension of the original
> Modula-2. I'm wary it might complicate matters unnecessarily,
Scott Robinson <address@hidden> writes:
> > # gm2 -c test1.mod
> > test1.mod:26:3: error: syntax error, found `['
> > test1.mod:30:1: error: compilation failed
> >
> > I'm wondering if the Modula-2 ISO standard specifically disallows
> > that syntax? And, if anyone has access to other Modula-2 compilers,
> > do those compilers accept the above?
Hi Scott and Andreas,
yes it is illegal in ISO M2 (Page 648 of the ebnf will force a syntax
error) as well as PIM [234]
regards,
Gaius