Re: 3.0.3

new topic     » goto parent     » topic index » view thread      » older message » newer message

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.
Maybe we should instead create a new "standard types" include file.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu