From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2746dae4f161c04e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-21 12:08:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Understanding Booleans Date: 21 Nov 2001 15:05:18 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <20011121.053507.496987743.3460@web.de> <3BFBDF14.4B83708B@boeing.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1006373260 29626 128.183.220.71 (21 Nov 2001 20:07:40 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 21 Nov 2001 20:07:40 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:16815 Date: 2001-11-21T20:07:40+00:00 List-Id: Preben Randhol writes: > On Wed, 21 Nov 2001 17:06:28 GMT, Jeffrey Carter wrote: > > Preben Randhol wrote: > >> > >> if Get_Active (Object) = True then > > > > Am I the only one who finds this objectionable? It ends up meaning the > > same thing as > > > > if Get_Active (Object) then > > Yes I know, but for some reason I like to write it like above instead. Hmm. One idea is to make the function name a "predicate", like Is_Active, instead of Get_Active. That makes: if Is_Active (Object) then more readable. -- -- Stephe