DMD 0.149 release
Derek Parnell
derek at psych.ward
Wed Mar 8 13:11:24 PST 2006
On Thu, 09 Mar 2006 07:53:20 +1100, Lucas Goss <lgoss007 at gmail.com> wrote:
> Thinking about it, does that mean this can be done?:
> scope(exit) {
> class1.cleanup();
> class2.cleanup();
> }
Yes.
> I think of it more like an event accumulator stack, not really a
> statement, so this just seems strange:
> scope(exit) class1.cleanup();
> scope(exit) class2.cleanup();
However, the two are different in that the first example above the order
of execution is class1.cleanup then class2.cleanup, but it is reversed in
example #2 as they get run in reverse lexical order.
--
Derek Parnell
Melbourne, Australia
More information about the Digitalmars-d-announce
mailing list