Path: 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 Organization: The Internet Lines: 20 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