Chris Angelico wrote:
In digging into a problem with Protocols.HTTP.Promise, I came across
# define PROMISE_DESTRUCTOR \ protected void _destruct() { \ werror("%O()._destruct()\n", object_program(this)); \
Even though I rewrote that implementation, I didn't touch (nor use) this construct.
How can this be solved generically? The symbol ::_destruct simply can't be looked up (at compile time) if the parent doesn't have one.
I think the same problem exists for constructors. Pike lacks a generic solution for both problems so far (AFAIK).