Jim LaGrone <[email protected]> wrote on 08/05/2009 03:21:42 PM:

> Any help would be appreciated:
> 
> I have the following X10 code:
> 
> public static def nextWhiteSpaceIndex(str:String, from:Int):Int{
>   var ch: Char;
>   var i: Int;
>   for (i = from; i < str.length(); i++){
>     ch = str.charAt(i);
>     if ( ch.isWhitespace() )
>       return i;
>   }
>   return -1;
> }
> 
> 
> get this error with C++ backend, but not Java backend:
> 
> x10c++: UserParameters.cc: In static member function ‘static x10_int 
> UserParameters::nextWhiteSpaceIndex(x10aux::ref<x10::lang::String>, 
> x10_int)’:
>       UserParameters.cc:827: error: ‘isWhitespace’ is not a member of 
> ‘x10aux::char_utils’
> x10c++: Non-zero return code: 1
> 2 errors.

Hi, Jim,

Thanks for the report.  This is a typo in char_utils.{h,cc}.  The smallest
test case for this is:

public class Bug {
   val c = 'a'.isWhitespace();
}

I will fix this in SVN shortly.  Please open a JIRA so we can track the 
fix.
        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/)

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to