Re: Example where Euphoria defaults on a boolean expression
From: <1evan at sbcglobal.net>
> Rom wrote:
>=20
> > if (f =3D e) and ( f !=3D e) then print( 1, 1)
> > else print ( 1, 0)
> > end if
> >
> >
> >f =3D e and f !=3D e cannot be resolved. The evaluation should =
return nil.
> >
> > =20
> ( f =3D e ) and ( f !=3D e) evaluates to 0 also.
> ( 3 =3D 2) and (3 !=3D 2) =3D> 0
> 0 and 1 =3D> 0
The example I formulated was a logical miss from my side. I have =
admitted that. What you are saying is true. Also that (False and True =
and nil) -> False, of course.
Rom
|
Not Categorized, Please Help
|
|