On Monday, 5 August 2013 at 15:55:00 UTC, John Colvin wrote:
On Monday, 5 August 2013 at 14:00:47 UTC, Dicebot wrote:
On Monday, 5 August 2013 at 13:25:43 UTC, John Colvin wrote:
It's not a feature I've ever had the need for so far, but
what is the replacement for scope?
http://dlang.org/phobos/std_typecons.html#.scoped
cool, thanks. Any particular catches a user should be aware of?
Other than leaking a reference of course.
Quality of implementation of course :) I have not used it much
personally and don't know how good it is, but it creates wrapper
struct and there can be issues with forwarding methods/operators
to wrapped class for some weird corner cases.