On 27/08/2013 1:26 AM, Jonathan S. Shapiro wrote:
This is a use case where we want the Disposable pattern (because of the using clause), but we do /not/ want finalization. I really want a stack-based canary pattern here. If a marker ever gets a finalization call, something is desperately wrong.
Most of the times I've run into this I've just used a struct. It's pretty clear that structs can't be finalized, but they can still implement IDisposable. It's filled the semantic weak spot sufficiently well so far.
Sandro
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
