DIP44: scope(class) and scope(struct)

Simen Kjaeraas simen.kjaras at gmail.com
Sat Aug 24 01:33:55 PDT 2013


On Sat, 24 Aug 2013 03:34:32 +0200, Ramon <spam at thanks.no> wrote:

> What, for instance, if I aquire 10 resources in ctor and during normal  
> programm execution cleanup 7 of them, so only some are left for dtor?

Then they don't have the same lifetime as the object, and scope(this)
would be the wrong tool for the job.

-- 
Simen


More information about the Digitalmars-d mailing list