[Gambas-user] Re: [Gambas-devel] Release of gambas2 1.9.11
PV
oreip at ...1...
Fri Jul 8 17:59:06 CEST 2005
On 08/07/2005 16:27, Benoit Minisini wrote:
>>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
>>
>
>
> Mmm... No ? If you get that, this is a bug!
>
I have just tested again this behavior and I can confirm that, in a numerical
context, "true" equals 1 so that, if x=1, then "print 1*(x>0)" prints 1.
Ciao,
Piero
More information about the User
mailing list