[phobos] returning void[] from std.file.read()

Denis 2korden at gmail.com
Mon Sep 27 01:02:57 PDT 2010


I also think it should return ubyte[].

On Mon, Sep 27, 2010 at 10:56 AM, Lars Tandle Kyllingstad
<lars at kyllingen.net> wrote:
> I think it should return ubyte[].
>
> -Lars
>
>
>
> On Sat, 2010-09-25 at 16:17 -0500, Andrei Alexandrescu wrote:
>> This has come up in http://d.puremagic.com/issues/show_bug.cgi?id=1482.
>> Should std.file.read() return void[] or ubyte[]? There's one matter with
>> assuming that void[] may contain pointers (which is not the case for
>> something read from a file), so possibly ubyte[] is a more accurate type
>> for describng raw bytes.
>>
>> What are the pros and cons of returning void[] vs. ubyte[]?
>>
>>
>> Andrei
>> _______________________________________________
>> phobos mailing list
>> phobos at puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/phobos
>
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
>


More information about the phobos mailing list