It's still not clear to me how you can make two comptime closures with different contents and pass those as a functor into the same function. It needs to have a sort of VTable to invoke the function, and yet since the contents are different, the objects are different, and their deallocation will be different too.
Defining VTable in zig seems to be a pretty laborious endeavor, with each piece sewn manually.
zoogeny|6 months ago
1. https://youtu.be/x3hOiOcbgeA?si=Kb7SrhdammEiVvDN&t=7620