"The last feature": scope structs
Walter Bright
newshound1 at digitalmars.com
Mon Feb 8 02:05:46 PST 2010
Lars T. Kyllingstad wrote:
> Though the feature seems useful, I worry about the asymmetry with scope
> classes. I think it will be very confusing to new D programmers that a
> scope class and a scope struct have very little to do with each other.
I agree, except I more and more think that scope classes were a mistake.
Structs with destructors are a much better solution, and wrapping a
class inside a struct would give it RAII semantics.
More information about the Digitalmars-d
mailing list