On Thursday, 7 May 2015 at 23:23:08 UTC, Justin Whear wrote:
formattedRead takes its input by ref and consumes it. Your first two attempts are both passing the result of functions (dropExactly and opSlice) which are temporary rvalues and can thus not be passed by reference. Here's more reading on the subject of rvalues: http://
ddili.org/ders/d.en/lvalue_rvalue.html

Ok, thanks, I see. It looks a little weird, but there is the same restriction in C#, actually. Must learn to read those D function signatures more closely...My excuse is it's 1 am :-)

Reply via email to