Please write:


val debug:Boolean = ( size<  10 ? true : false );



On 9/8/2010 8:53 AM, Christoph Pospiech wrote:
> Hi,
>
> I was trying to write the following line.
>
> val debug:Boolean = ( size<  10 ? TRUE : FALSE );
>
> The compiler (X10 v. 2.0.6) complained about this as follows.
>   Multiple messages at this line.
>       -Could not find field or local variable
>        "TRUE".
>       -Could not find field or local variable
>        "FALSE".
>
> The following statement works, but I would consider this a work around rather
> than a solution.
>
> val debug:Boolean = ( size<  10 ? (1==1) : (0==1) );
>
> What I am missing here ?



------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to