Re: confused about scope storage class

2009-07-29 Thread Trass3r
It will be disastrous to automatically delete all referenced objects. Now that you say it, yes there could be other references to that object.

Re: confused about scope storage class

2009-07-29 Thread Kagamin
Trass3r Wrote: > So scope for class references guarantees that the destructor is called > upon leaving the scope (why isn't this done automatically?). It will be disastrous to automatically delete all referenced objects.

Re: confused about scope storage class

2009-07-28 Thread Jarrett Billingsley
On Tue, Jul 28, 2009 at 10:46 PM, Trass3r 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 e

confused about scope storage class

2009-07-28 Thread Trass3r
So scope for class references guarantees that the destructor is called upon leaving the scope (why isn't this done automatically?). But what if scope is used with basic types like scope int x; What's the effect?