Module for manual memory management

Foo via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 4 13:40:44 PST 2015


On Wednesday, 4 February 2015 at 20:55:59 UTC, Walter Bright
wrote:
> 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.

It would be much easier for me, if some of you would add such a
allocator to it. :P


More information about the Digitalmars-d mailing list