Re: 3.0.3
- Posted by Juergen Luethje <j.lue at gmx.de> May 11, 2007
- 746 views
Robert Craig wrote: > Juergen Luethje wrote: > > maybe you can add something like the following to 'misc.e': > > }}} <eucode> > > global constant > > FALSE = 0, > > TRUE = not FALSE > > > > global type boolean (object x) > > if integer(x) then > > return x = FALSE or x = TRUE > > else > > return FALSE > > end if > > end type > > </eucode> {{{ > > > > I think it would be pretty useful. > > It would be useful, but if we add it now, > it will trigger error messages in a lot of existing code, > since boolean, TRUE and FALSE are already declared > as globals, and used, by many programs that currently include misc.e. I see. > Maybe we should instead create a new "standard types" include file. Oh yes, I think that is a good idea. Regards, Juergen