On 16/08/2017 13:48, Michael Schnell wrote:
On 16.08.2017 14:30, Martin Frb via Lazarus wrote:

And that would still not be "char", but "codepoint"

A char can be composed of several combining code points (each of them afaik, in the 32 bit range). So a char can have 96 or more bits. (And not all of them have a combined form).
Unfortunately in Delphi and FPC the appropriate work-alike existing type is called Char (with certain extensions). It would cause major problems to drop that name for something else, even if that would be appropriate.

I agree. "char" actually is a "code unit".

But renaming it, would probably be as good as killing the language.

and anyone can do
type codeunit=char;

and use this.
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to