Re: and then... (a curiosity)
- From: Maciej Sobczak <see.my.homepage@xxxxxxxxx>
- Date: Sat, 30 Aug 2008 14:28:59 -0700 (PDT)
On 29 Sie, 23:47, Samuel Tardieu <s...@xxxxxxxxxxx> wrote:
Sometimes, you want to ensure that both sides of the boolean operator
have been evaluated. Here is an example:
-- Send the message to the log and return True if it
-- has been logged at least at one place succesfully.
function Log (Message : String) return Boolean is
begin
return Log_To_Network (Message) or Log_To_Disk (Message);
end Log;
This is actually a bad example. It might use "or else" and still
retain the semantics as described in the comment above.
--
Maciej Sobczak * www.msobczak.com * www.inspirel.com
Database Access Library for Ada: www.inspirel.com/soci-ada
.
- Follow-Ups:
- Re: and then... (a curiosity)
- From: Georg Bauhaus
- Re: and then... (a curiosity)
- References:
- and then... (a curiosity)
- From: mockturtle
- Re: and then... (a curiosity)
- From: Samuel Tardieu
- and then... (a curiosity)
- Prev by Date: Re: Very confused by Ada tasking, can not explain the execution outcome.
- Next by Date: Re: and then... (a curiosity)
- Previous by thread: Re: and then... (a curiosity)
- Next by thread: Re: and then... (a curiosity)
- Index(es):
Relevant Pages
|