[M3devel] Simple change to WIDECHAR type

Dragiša Durić dragisha at m3w.org
Sat Jun 30 19:17:23 CEST 2012


And since when usefulness on Windows defined anything Modula-3?

To use vastvastvastnumber of Windows functions on Modula-3 TEXT you must call at least one Modula-3 function on your argument to make it passable to Windows API function. To make another single-call Modula-3 function mapping UTF-8 to Windows API acceptable argument is five minutes task.

So, you are in fact gaining nothing with WIDECHAR you can't have with UTF8 packed in Text8.T.

32bit characters is what we have on non-Windows. And we must convert all the time if we are to use Modula-3 WIDECHAR based TEXT to non-Windows wchar strings. Are you arguing Windows is more important than all other platforms we support or what?

On Jun 30, 2012, at 6:52 PM, Jay K wrote:

> 
> I don't fully buy this. 16bit WIDECHAR is very useful on Windows.
> 
> It can be used directly with a vast vast vast vast number of functions.
> 
> 32bit char would be require conversion to and from all the time.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20120630/cee990e2/attachment-0002.html>


More information about the M3devel mailing list