Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!WSL.DEC.COM!joel From: joel@WSL.DEC.COM Newsgroups: comp.lang.modula2 Subject: Re: Is this a compiler bug? Message-ID: <8903032139.AA00466@gilroy.pa.dec.com> Date: 3 Mar 89 21:39:18 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Modula2 List Organization: The Internet Lines: 15 INC(CARDINAL(code), 1); is not accepted by most Modula-2 compilers, because ``CARDINAL(code)'' is an expression (an r-value, for those conversant with C's description) rather than a variable (an l-value). INC effectively takes a VAR parameter, so insists upon having a variable. I don't consider the cast to really be an expression. I see it as a type conversion which is more properly seen as a viewpoint change rather than a computation. I therefore consider this a silly restriction, and done something about it in the Modula-2 compiler I maintain. But it certainly isn't standard. Joel McCormack