🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #852

Re: Why are the loops so awkward?

#852
From: Andreas Borchert
Date: Wed, 27 Jun 1990 11:15
20 lines
1202 bytes
Jim Long writes:

> In an article of <21 Jun 90 15:40:03 GMT>, lins@Apple.COM (Chuck Lins) writes:
>
>  >        Compilers are allowed to strip dead code. Constant boolean
>  >        expressions may never need to be evaluated at run-time at all.
>
> I haven't tested my Modula-2 system in this regard, but I recall years ago
> that UCSD p-System's Pascal compiler treated BOOLEAN constants in IFs like
> conditional compilation.  If the constant was FALSE, the compiler would not
> generate code for the THEN clause.  Does anyone know of any M2 compilers with
> this feature?

At least all Modula-2 compilers which descend from the Lilith Modula-2 compiler
have this feature.

Andreas Borchert
--
borchert@mathematik.uni-ulm.de
borchert@dulruu51.bitnet
Technical Details
Message-ID: <9006271115.AA00178@mathematik.uni-ulm.de>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!ucbvax!MATHEMATIK.UNI-ULM.DE!borchert

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!ucbvax!MATHEMATIK.UNI-ULM.DE!borchert
From: borchert@MATHEMATIK.UNI-ULM.DE (Andreas Borchert)
Newsgroups: comp.lang.modula2
Subject: Re: Why are the loops so awkward?
Message-ID: <9006271115.AA00178@mathematik.uni-ulm.de>
Date: 27 Jun 90 11:15:04 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: Modula2 List <INFO-M2%UCF1VM.BITNET@PSUVM.PSU.EDU>
Organization: The Internet
Lines: 20