Simon Cozens <[EMAIL PROTECTED]> wrote:
> On Thu, Aug 03, 2000 at 01:15:54PM -0400, Dan Sugalski wrote:
> > >One thing: remember, there is a lot of talk about having
> > >perl6 use Unicode internally, which means that things like
> > >method names should be wchar_t * (or whatever).
> > 
> > Good point. I shall have to think Unicode more. (UTF-32, anyone? :) Though 
> 
> Not necessary, but we should not rule it out. I think UTF16 internally is
> the way to go.
> 
> > it does present a problem for those languages that don't do Unicode and do 
> > char* instead.
>  
> I would guess we'd have to convert everything into Unicode.

What would be the trouble with having all relevant code (ops, SV
operations, what-have-you) compiled once for 8-bit chars, once for 16,
and once for 32?  The Unicode routines could be demand-loaded so as
not to affect programs that don't use them.

This is something like how the Windows 32 API works, I believe, where
FooBarBlahBlahBlah is a macro defined as either FooBarBlahBlahBlahA
(for "ASCII") or FooBarBlahBlahBlahW ("wide").

-- 
John Tobey, late nite hacker <[EMAIL PROTECTED]>
\\\                                                               ///
]]]             With enough bugs, all eyes are shallow.           [[[
///                                                               \\\

Reply via email to