I used "must", because I think it is insane to get a compilation error just because I search an array for some object that doesn't occur there.
Say I have a lyskom module, that let me set KOMNAME or KOMNUMBER in the environment.
string|int me;
void create() { me = getenv("KOMNAME") || (int) getenv("KOMNUMBER"); }
A program could use it like
if (kom.me == 5) werror("Welcome ceder\n");
or
if (search( ({ 5, 17, 4711 }), kom.me) >= 0) ...;
But running that program would result in a compilation error if KOMNAME=nisse?
/ Niels Möller ()
Previous text:
2003-02-12 17:10: Subject: Search bug ?
"must" is a strong word here. Nilssons example fatal is usefull. If the only reason for allowing it is ortogonality I'd rather have it stay as is.
/ Peter Bortas