DIP 1025--Dynamic Arrays Only Shrink, Never Grow--Community Review Round 1

Robert Schadek rschadek at symmetryinvestments.com
Tue Nov 12 08:43:27 UTC 2019


On Tuesday, 12 November 2019 at 03:08:28 UTC, Walter Bright wrote:
> Although malloc() is marked as @system, it actually is @safe. 
> It's free() that needs to be @system.

I think that is a mute point.
malloc gives you a void*, you can't really do anything with that 
void*
in @safe code.
You can't even cast it to int*, and it shouldn't.

I know I sound like a broken record, but IMO mmm and @safe is the 
wrong direction.



More information about the Digitalmars-d mailing list