std.file.read returns void[] why?

Andrej Mitrovic via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Apr 20 04:47:08 PDT 2014


On 4/18/14, monarch_dodra via Digitalmars-d-learn
<digitalmars-d-learn at puremagic.com> wrote:
> Yeah... "static assert(void.sizeof == 1);" passes :/

Note that you can even have static void arrays. E.g.:

https://issues.dlang.org/show_bug.cgi?id=9691

I'm not sure whether this is an oversight (accepts-invalid) or
something else. But it needs to be properly documented.


More information about the Digitalmars-d-learn mailing list