[Gambas-user] Re: [Gambas-devel] Release of gambas2 1.9.11

PV oreip at ...1...
Wed Jul 6 22:20:46 CEST 2005


On 06/07/2005 19:24, Benoit Minisini wrote:
> Hi, 
> 
> Here is a big important release of the development version.
> 
> Many new syntaxes and features were added to the compiler and the interpreter, 
> the bytecode has changes, and so ALL PROJECTS MUST BE *ENTIRELY* RECOMPILED!

[snip]

I haven't seen this mentioned in the Changelog but it seems that in this
release an expression that evaluates to true is replaced by 1 in a numerical
context, whereas in previous releases it was replaced by -1.

Example:
let x = 10
in Gambas <= 1.9.10, an expression like x * (x > 0) evaluated to -10
in Gambas 1.9.11 the same expression evaluates to 10.

Is it right?

Ciao,
Piero





More information about the User mailing list