🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #522

Re: What I'd really like to see in an if-statement...

#522
From: Erland Sommarskog
Date: Thu, 17 Aug 1989 21:39
20 lines
1273 bytes
David Lee Matuszek (dave@PRC.Unisys.COM) writes:
>I don't think you're overlooking anything.  I had no trouble at all
>with that part of the language.  You do have to decide what to do
>about expressions such as "x < (y < z)" ["illegal" is a good choice!].

In Pascal x < (y < z) is perfectly legal if x is boolean. As far
as over-looking, I can only think one thing and that is expressions
like a < b < f(). Should f always be called? Well, the easy answer
is that such a think is not defined by the language and any program
that relies on that f is always called (or only called when necessary)
is clearly erroneous.

>I think these are not
>common because Pascal-like languages do not generally have sets or
>lists as supported data types.

Almost true. Pacal itself has sets though.
-- 
Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se
"Hey poor, you don't have to be Jesus!" - Front 242
Technical Details
Message-ID: <186@enea.se>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!mcvax!sunic!enea!sommar

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!mcvax!sunic!enea!sommar
From: sommar@enea.se (Erland Sommarskog)
Newsgroups: comp.lang.misc
Subject: Re: What I'd really like to see in an if-statement...
Message-ID: <186@enea.se>
Date: 17 Aug 89 21:39:27 GMT
Organization: Enea Data AB, Sweden
Lines: 20