Module for manual memory management

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 4 12:55:53 PST 2015


On 2/4/2015 12:42 PM, Foo wrote:
> On Wednesday, 4 February 2015 at 20:15:37 UTC, Andrei Alexandrescu wrote:
>> @trusted
>> @nogc
>> char[] read(const string filename) nothrow {
> Yes that is correct, currently there is no error checking, maybe it get that
> later. But what do you mean with "it use more operations than necessary"? I
> can't see it. But both points are helpful critique. Thanks a lot! :)

No need to reinvent this:

   https://github.com/D-Programming-Language/phobos/blob/master/std/file.d
   line 194

Just use it and change the allocator bit.



More information about the Digitalmars-d mailing list