[M3devel] INTEGER
Jay K
jay.krell at cornell.edu
Mon Apr 19 23:20:00 CEST 2010
For the record, anyone using Windows (NT/2000/XP/2003/etc.) is using 16bit characters *all the time*.
MacOSX maybe also.
I think utf8 is kind of a hack to let folks get away without really doing anything.
Granted, I didn't realize till recently that strcmp works on utf8..maybe a really clever idea..
- Jay
> Date: Mon, 19 Apr 2010 11:57:02 -0400
> From: hendrik at topoi.pooq.com
> To: m3devel at elegosoft.com
> Subject: Re: [M3devel] INTEGER
>
> On Sun, Apr 18, 2010 at 12:59:01PM -0700, Mika Nystrom wrote:
> >
> > And the new m3tk, stubgen, and compiler(?) won't compile using PM3 or
> > SRC M3 since we're no longer using the language of the Green Book.
> > (Same comment goes for WIDECHAR, by the way.)
>
> When I use Unicode characters, I find myself defining them to be
> INTEGERs, because I'm always worried that WIDECHARs might be omly 16 bits.
>
> Strings of WIDECHARS are probably unnecesary. The last program I wrote
> that used Unicode used INTEGERs for characters, and arrays of INTEGERS
> for strings. But I think it was a mistake to do it this way, and when I
> have time I'll rewrite it. UTF-8 seems to be the way to go; strings of
> Unicode can easily be manipulated as ordinary TEXT. In fact, I
> think there are few if any places in my code where I would have had to
> do anything special whatsoever if I had just used UTF8 in TEXT. The
> program would simply become simpler.
>
> -- hendrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100419/bb1f8be2/attachment-0002.html>
More information about the M3devel
mailing list