Francesco
9/6/2009 11:11:00 PM
On 6 Set, 22:38, James Kanze <james.ka...@gmail.com> wrote:
> On Sep 6, 9:18 pm, Francesco <entul...@gmail.com> wrote:
>
> > On 6 Set, 20:14, "Alf P. Steinbach" <al...@start.no> wrote:
> > > * Francesco:
>
> [...]
>
> > > > For instance, take the character ? (two) - if missing,
> > > > the glyph looks like an equal sign "=", just for
> > > > information.
> > > > That's a digit in Chinese, does C++ consider it digit or
> > > > nondigit?
>
> It depends. It can't be used as part of a number, but it is
> legal in an identifier (even as the first character of an
> identifier).
Thank you for the confirmation, James, just what I was looking for to
tranquilize myself about the Chinese program I posted. About your "It
depends", I suppose you meant something about the fact that some
isdigit() function could return true on that character - which would
be good, I suppose.
> > > The short of it is, as James Kanze remarked other-thread
> > > today or was it yesterday, that while formally C++ supports
> > > general Unicode in names, and did that before Java, most
> > > compilers don't support that.
> > > The characters accepted formally by C++ are the set defined
> > > by some ISO standard, IIRC the used for e.g. JavaScript, and
> > > I believe also Java.
> > > There's an appendix at the back of the standard that has
> > > some more info, but essentially: don't use it, not even
> > > Western language characters such as ÆØÅ.
> > Fine, I won't use them in real code.
>
> In portable code. I think they work in VC++.
Oh yes, of course I should have written "in portable code", up there.
Thanks again,
Francesco