[Gambas-user] Better IIf?

Jussi Lahtinen jussi.lahtinen at ...626...
Wed May 4 18:27:16 CEST 2011


Hi!
I noticed this while debugging (from http://gambasdoc.org/help/lang/iif?v3);
"BE CAREFUL!
Contrary to IF, or the C/Perl ? operator, both TrueExpression and
FalseExpression are evaluated, whatever the value of Test is.
"

This is pretty deceptive!
Can this be re-implement as syntactic sugar (compiler would turn IIf to
normal If/Else/Then structure)?

Jussi



More information about the User mailing list