On Sunday, 8 February 2015 at 04:45:55 UTC, Andrei Alexandrescu
wrote:
On 2/7/15 8:21 PM, H. S. Teoh via Digitalmars-d wrote:
Come to think of it, is there any point in making malloc
@safe/@trusted
at all? I don't think it's possible to make free() @safe, so
what's the
purpose of making malloc callable from @safe code? Unless you
make a
ref-counted wrapper of some sort around it, in which case you
might as
well use RefCounted instead.
Same goes about e.g. fopen vs. fclose. I'm thinking just of
increasing the quantity of safe code. -- Andrei
So are you going for this:
http://forum.dlang.org/thread/[email protected]
?