John Lam [mailto:[EMAIL PROTECTED]] wrote:

> Do folks have other interesting ideas for aspects as
> diagnostic probes?

Uhh... here's a cool one that would probably win you unimaginable amounts of
praise from the deterministic finalization crowd. How about an aspect that
is executed after a woven method that ensures that all local variables which
support IDisposable and are whose references are not already null are
reported and/or automagically Dispose()d of?

The reason I say "and are whose references are not already null" is because
there's unfortunately no other abstract indicator as to whether or not an
IDisposable object has truly been disposed of. Personally I think
IDisposable should support an abstract read-only Disposed property that
returns true/false based on whether or not the object has been in fact been
properly disposed of.

Later,
Drew

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to