Good name for f.byLine.map!(x => x.idup)?

Marco Leise Marco.Leise at gmx.de
Sun Mar 16 21:10:00 PDT 2014


Am Sun, 16 Mar 2014 18:03:09 +0000
schrieb "Adam D. Ruppe" <destructionator at gmail.com>:

> If byLine returned a scope item, then it wouldn't be allowed to 
> escape and throw a nice compile error pointing people in the 
> right direction.... scope rox so much i want it so badly.

Yes, pointers to working buffers are a frequent use case for
"borrowed pointers".

-- 
Marco



More information about the Digitalmars-d mailing list