Are scope class useful ?

#ponce nospam at nospam.com
Tue Jan 5 08:10:50 PST 2010


When I started D, it was possible to define a scope class like this.

scope class Something
{
// blah
}

An instance declaration would then _require_ the scope storage class.


{
    scope Something myVar;
   // do something with Something
}

Is there a use case for such a feature.?


More information about the Digitalmars-d-learn mailing list