Why are scope variables being deprecated?

Chad J chadjoan at __spam.is.bad__gmail.com
Thu Jul 26 18:09:09 PDT 2012


I keep hearing that scope variables are going away.  I missed the 
discussion on it.  Why is this happening?

When I read about this, I have these in mind:

void someFunc()
{
	// foo is very likely to get stack allocated
	scope foo = new SomeClass();
	foo.use();
	// ~foo is called.
}


More information about the Digitalmars-d-learn mailing list