betterC becoming unusable

Paul Backus snarwin at gmail.com
Mon Nov 7 13:50:58 UTC 2022


On Monday, 7 November 2022 at 12:46:08 UTC, Alexandru Ermicioi 
wrote:
> Doesn't mean that they are doing something right. They should 
> just replace all char* with ubyte* in D for any C header they 
> use, if they just simply cast them, then compiler could spot 
> them when used with string only methods.
>
> Best would be if such mixing between non utf and utf would not 
> be so easy to do, and that would force user to think twice.

I agree, but changing the headers in core.stdc now would break a 
lot of existing code, so I don't think it's likely to happen.


More information about the Digitalmars-d mailing list