File.lockingBinaryWriter is not output range?
Denis Feklushkin
feklushkin.denis at gmail.com
Tue Mar 19 13:25:27 UTC 2019
On Tuesday, 19 March 2019 at 13:20:37 UTC, Vladimir Panteleev
wrote:
> On Tuesday, 19 March 2019 at 13:14:52 UTC, Denis Feklushkin
> wrote:
>> /+ dub.sdl:
>> name "hello_world"
>> +/
>
> This doesn't seem necessary :)
I add it ~everywhere for faster reproducing of cases.
>
>> static
>> assert(isOutputRange!(typeof(stdout.lockingBinaryWriter),
>> byte));
>
> static
> assert(isOutputRange!(typeof(stdout.lockingBinaryWriter()),
> byte));
>
> typeof(stdout.lockingBinaryWriter) is a function type. You need
> the ().
Ooops! Thanks! :-)
/thread
More information about the Digitalmars-d-learn
mailing list