Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!sdd.hp.com!apollo!rehrauer From: rehrauer@apollo.HP.COM (Steve Rehrauer) Newsgroups: comp.sys.apollo Subject: Re: The wonderful Pascal compilier... Message-ID: <4e0179af.20b6d@apollo.HP.COM> Date: 14 Nov 90 18:03:00 GMT References: <43023@cci632.UUCP> <4e00f7c8.20b6d@apollo.HP.COM> Sender: root@apollo.HP.COM Reply-To: rehrauer@apollo.HP.COM (Steve Rehrauer) Organization: Hewlett-Packard Apollo Division - Chelmsford, MA Lines: 27 In article <4e00f7c8.20b6d@apollo.HP.COM> rehrauer@apollo.HP.COM (Steve Rehrauer) writes: >For example, this Pascal snippet: > > IF ( ( ptr = NIL ) OR ELSE ( ptr^.intval <> 0 ) ) THEN > >is intuitively the same as (but more compact to write than!): > > IF ( ptr <> NIL ) THEN > IF ( ptr^.intval <> 0 ) THEN Oh, sigh -- let me try again. This: IF ( ( ptr = NIL ) OR ELSE ( ptr^.intval <> 0 ) ) THEN { statements } is the same as this: IF ( ptr = NIL ) THEN { statements } ELSE IF ( ptr^.intval <> 0 ) THEN { statements } Read the manual for details. (Do what I mean, not what I say. :) -- "I feel lightheaded, Sam. I think my | (Steve) rehrauer@apollo.hp.com brain is out of air. But it's kind of | The Apollo Systems Division of a neat feeling..." -- Freelance Police | Hewlett-Packard