It's both. We have not implemented Unicode support in C++, and the parser does not yet understand Unicode in literals and identifiers.
There are plans to reimplement x10.lang.String in X10, which would let us pick an encoding for Strings and the representation of Chars that is independent of that in Java. We believe that UTF-8 is such an encoding for Strings, and restricting current Strings to ASCII will let us later add such support in a backward-compatible manner. Jeff, as Vijay asked, is there an immediate need for Unicode support, or are you simply curious? Igor Nate Nystrom <n...@nanocow.com> wrote on 08/24/2010 08:24:18 PM: > For compatibility with Java, wouldn't we support Unicode rather than > ASCII. I think maybe we don't support Unicode because of the C++ > translation (representing Char as a C++ char). Or perhaps it's just > that the parser was never implemented to support Unicode. > > Nate > > > On Tue, Aug 24, 2010 at 19:18, Vijay Saraswat <vi...@saraswat.org> wrote: > > Indeed, currently Char is so restricted. The primary reason is > > compatibility with Java, so that x10.lang.String can essentially be > > implemented as java.lang.String. > > > > It does make sense to have a "RichString/RichChar" class as well which > > supports permits UTF-8. Is there some particular interest in getting > > this done sooner rather than later...? > > > > Best, > > Vijay > > > > Jeff Sweeney wrote: > >> I am reading the X10 Specification and it seems Char literals are > >> restricted to ASCII. Is that correct and if so why? -- Igor Peshansky (note the spelling change!) IBM T.J. Watson Research Center X10: Parallel Productivity and Performance (http://x10-lang.org/) XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/) "I hear and I forget. I see and I remember. I do and I understand" -- Confucius ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users