Phobos for Review: std.buffer.scopebuffer

Walter Bright newshound2 at digitalmars.com
Fri Feb 7 11:37:34 PST 2014


On 2/7/2014 7:57 AM, Adam D. Ruppe wrote:
> Some caution would be needed by the caller to understand that if you pass a
> scope buffer as the output range, the returned slice is owned by that buffer
> too... but that's a managable restriction, they did pass the buffer after all so
> it is no surprise to them when it gets used!

That's why the [ ] overloads are marked @system.


More information about the Digitalmars-d mailing list