std.file.read
Dmitry Olshansky
dmitry.olsh at gmail.com
Mon Aug 2 11:12:20 PDT 2010
On 02.08.2010 21:36, bearophile wrote:
> Pelle:
>
>>> Well, it magically converts to whatever array type you have. So this works:
>>> ubyte[] data = read("trash.txt");
>>>
>> This code does not work for me on dmd 2.047.
>>
> AH, nor for me.
>
> Bye,
> bearophile
>
Hm... it doesn't ...
Ouch, I was very much sure the unittest run, but unfortunately it didn't
(it was some other debug output then...).
Dang, DMD does not even type check the unitest code when the compiler
option not passed.
Again, my apologizes.
--
Dmitry Olshansky
More information about the Digitalmars-d-learn
mailing list