comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Lundin" <bjorn.lundin.nospam@swipnet.se>
Subject: Re: Int_Stack rewritten.
Date: Mon, 02 Dec 2002 21:34:57 +0100
Date: 2002-12-02T21:34:57+01:00	[thread overview]
Message-ID: <LrPG9.1314$Y04.2163@nntpserver.swip.net> (raw)
In-Reply-To: HLNG9.4194$pN3.466@sccrnsc03

Stapler wrote:

>     
>                 if The_Stack.Top = The_Stack.Elements'First then
>                         return True;
>                 else
>                         return False;
>                         
>                 end if;

It's a matter of taste, but the above lines could be written as
   return (The_Stack.Top = The_Stack.Elements'First);

Then again, the original migth be easier to read...
/Bj�rn
  



  reply	other threads:[~2002-12-02 20:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-02 18:37 Int_Stack rewritten Stapler
2002-12-02 20:34 ` Björn Lundin [this message]
2002-12-02 20:55 ` Jeffrey Carter
replies disabled

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