confused about scope storage class

Jarrett Billingsley jarrett.billingsley at gmail.com
Tue Jul 28 20:52:12 PDT 2009


On Tue, Jul 28, 2009 at 10:46 PM, Trass3r<mrmocool at gmx.de> wrote:
> So scope for class references guarantees that the destructor is called upon
> leaving the scope (why isn't this done automatically?).

Why isn't what done automatically?

> But what if scope is used with basic types like scope int x;
> What's the effect?

There is none.  The compiler will accept meaningless attributes.  It's
a point of contention.


More information about the Digitalmars-d-learn mailing list