Stephen R. van den Berg wrote:
The freeing of the C-struct needs to be delayed until all references to the callback function are gone (which probably implies that I need to turn the struct over to the garbage collector, which implies that it needs to be an svalue, I presume). If anyone has better ideas for this,
I think I solved it. I'm still wondering where that function lives though. I'm guessing that it's some cleverly obfuscated macro-generated code.