comp.lang.ada
 help / color / mirror / Atom feed
From: yokwad@yahoo.com (Keith)
Subject: boolean array
Date: 24 Jan 2002 16:33:52 -0800
Date: 2002-01-25T00:33:53+00:00	[thread overview]
Message-ID: <b28112f8.0201241633.7baa1010@posting.google.com> (raw)

Hello,

I want to know if there is any false element(s) in an array of booleans.

Currently I am looping through the array and looking at each value until
I find a false element.

x := true;
for i in foo'range loop      -- foo'range < 8
   x := foo (i);
   exit when not x;
end loop;

if x then .....

Is there a faster/preferred way of accomplishing this?
I am compiling Ada 95 with Green Hills AdaMULTI for VxWorks running on x86.  

Thank you,
Keith



             reply	other threads:[~2002-01-25  0:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-25  0:33 Keith [this message]
2002-01-25 13:51 ` boolean array Sandro Binetti
  -- strict thread matches above, loose matches on Subject: below --
2002-01-25  5:55 Christoph Grein
2002-01-25 20:37 ` Robert Dewar
replies disabled

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