comp.lang.ada
 help / color / mirror / Atom feed
From: "Ed Falis" <falis@verizon.net>
Subject: Re: Order of logical operations
Date: Mon, 07 Jun 2004 17:36:20 GMT
Date: 2004-06-07T17:36:20+00:00	[thread overview]
Message-ID: <opr88i6ryl5afhvo@garuda.mshome.net> (raw)
In-Reply-To: D91xc.7620$8k4.275236@news20.bellglobal.com

On Mon, 07 Jun 2004 13:00:20 -0400, Warren W. Gay VE3WWG  
<ve3wwg@cogeco.ca> wrote:

> Nick Roberts wrote:
>
>>   Surely it's quite handy to be able to write things like the following?
>>     A: array (1..10) of Boolean;
>>    ...
>>    while i > 0 and then A(i) loop
>>       ...
>
> I find it handy for access types (for the FORTRAN folks,
> the use of pointers):
>
> if P /= null and then P.Member <= 23 then
>     ...
>
> If this were not short-circuited the P.Member access
> would be problematic when P was null.


Sorry I didn't mention this kind of use in my first message.  It's so  
obvious and widespread that I forgot to list it ;-)

- Ed



  reply	other threads:[~2004-06-07 17:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <slrncbtfkn.247.tconnors@tellurium.ssi.swin.edu.au>
     [not found] ` <m11xkwd6ct.fsf@macfortran.local>
     [not found]   ` <slrn-0.9.7.4-31741-29330-200406040800-tc@hexane.ssi.swin.edu.au>
     [not found]     ` <40C0208A.80DBE53A@wldelft.nl>
2004-06-04 18:40       ` Order of logical operations James Van Buskirk
2004-06-04 20:06         ` Ed Falis
2004-06-04 21:09           ` Nick Roberts
2004-06-07 17:00             ` Warren W. Gay VE3WWG
2004-06-07 17:36               ` Ed Falis [this message]
2004-06-04 21:37         ` Björn Persson
2004-06-05 10:44         ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox