Jim LaGrone <jlagr...@cs.uh.edu> wrote on 09/16/2009 09:25:51 PM: > Do X10 conditional statements have a short-circuit mechanism? > > Suppose the statement > > if ( A && B ) > doWork(); > > When A==false, will B be evaluated? > > Suppose the statement > > if ( A || B ) > doWork(); > > When A==true, will B be evaluated?
Conditionals for booleans do have short circuiting behavior. However, if one overloads these operators for a user-level class, they will not short circuit. Igor -- Igor Peshansky (note the spelling change!) IBM T.J. Watson Research Center XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/) X10: Parallel Productivity and Performance (http://x10.sf.net/) ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users