[phobos] Why is scoped offered by a function?

SHOO zan77137 at nifty.com
Sat Aug 7 01:13:04 PDT 2010


Why is std.typecons.scoped offered by only a function?

I think that a struct is offered is better than only a function.
For example, this allows following code:
http://ideone.com/LMADW

I read some related posts in the past. They want scope member variables.
I think scoped!(T) has potential to become one solution for it.


More information about the phobos mailing list