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
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to