The scope of scope(exit)
James Dunne
james.jdunne at gmail.com
Thu Mar 9 19:39:35 PST 2006
Derek Parnell wrote:
> On Fri, 10 Mar 2006 12:58:08 +1100, Derek Parnell wrote:
>
> Oops , should have read ...
>
> but expected ...
>
> Foo IN 1 OUT 10
> Foo IN 7 OUT 7
>
>
Putting the return in the scope(exit) block fixes the problem.
Interesting, but not unexpected. I'd say this way provides more
flexibility, but also may cause confusion (as it just did).
--
Regards,
James Dunne
More information about the Digitalmars-d-learn
mailing list