#2 "Destructor" support for del/free

closed
nobody
None
5
2004-09-15
2003-02-18
Ryan Daum
No

Would be nice if it was possible to pass in a function
pointer to the various Del and Free calls. This
function would get passed the address of the value
being freed and thus give application writers (i.e.
people like me trying to write generic templated C++
wrappers) the ability to invoke standard destructor
behaviours during removal.

Discussion

  • Logged In: YES
    user_id=500646

    An alternative would be to return the value from the Judy*Del()
    function (obviously not the pointer to the value). eg, the
    declaration be like:

    Pvoid_t JudySLDel(PPvoid_t PPJSLArray, const char * Index,
    PJError_t PJError);

    Then one could delete the value, being a pointer to an object.

     
  • Troy Heber
    Troy Heber
    2004-09-15

    • status: open --> closed