Finding and invoking struct destructors in D2
Pillsy
pillsbury at gmail.com
Thu May 27 09:27:31 PDT 2010
Hi, all,
I was wondering if there's any way to determine at compile time
whether a struct has a (non-trivial) destructor associated with it,
and whether there's any way to call that destructor without using
the delete operator. It seems like being able to do these two
things would allow you to make a container that plays well with
structs that are designed to do (say) reference counting, but I
don't see anything in the spec on the website that shows how this
might be accomplished.
Thanks!
Pillsy
More information about the Digitalmars-d-learn
mailing list