> < ^ Date: Mon, 20 Dec 1999 12:12:41 +0100 (CET)
> < ^ From: Sergei.Haller@math.uni-giessen.de < >
^ Subject: true-false-fail-boolean

Dear forum,

this is not really a bug :

gap> if fail then Print("1\n"); else Print("2\n"); fi;
<expr> must be 'true' or 'false' (not a boolean)           # very funny :)

on ??fail, reference manual says:

But note that `fail' cannot be used to form boolean expressions with
`and', `or', and `not', and `fail' cannot appear in boolean lists (see
Chapter "Boolean Lists").

But I think, at least the message
<expr> must be 'true' or 'false' (not a boolean)
should be adjusted. Maybe so:
if IsIdenticalObj(<expr>, fail) then
Print("<expr> must be 'true' or 'false' (not 'fail')");
# print the usual message

PS.: I'm using GAP 4r1fix7

c ya

         eMail:       Sergei.Haller@math.uni-giessen.de
      WWW-page:     http://www.hrz.uni-giessen.de/~gc1007/
Be careful of reading health books, you might die of a misprint.
                -- Mark Twain

> < [top]