File.lockingBinaryWriter is not output range?

Vladimir Panteleev thecybershadow.lists at gmail.com
Tue Mar 19 13:20:37 UTC 2019


On Tuesday, 19 March 2019 at 13:14:52 UTC, Denis Feklushkin wrote:
> /+ dub.sdl:
> name "hello_world"
> +/

This doesn't seem necessary :)

> static 
> assert(isOutputRange!(typeof(stdout.lockingBinaryWriter), 
> byte));

static 
assert(isOutputRange!(typeof(stdout.lockingBinaryWriter()), 
byte));

typeof(stdout.lockingBinaryWriter) is a function type. You need 
the ().



More information about the Digitalmars-d-learn mailing list