2011/5/4 Jussi Lahtinen <jussi.lahti...@gmail.com>:
> 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

+1

If TrueExpression or/and FalseExpression are calls to methods, leads
to a logical error because both methods are executed.


Fabián Flores Vadell

--
www.comoprogramarcongambas.blogspot.com
www.speedbooksargentina.blogspot.com

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to