C is Brittle D is Plastic

Walter Bright newshound2 at digitalmars.com
Tue May 5 13:20:17 UTC 2026


On 4/29/2026 6:26 AM, Nick Treleaven wrote:
> Very likely existing working code does something like:
> ```d
> void f(const char*);
> 
> const s = "hi";
> f(s.ptr); // boom
> ```

It wouldn't pass muster in @safe code.


More information about the Digitalmars-d mailing list