On Mon Jul 25 15:03:04 2022 +0000, Gabriel Iv��ncescu wrote:
To be honest, now that I fiddled with it, I should probably keep the compat_mode in the array, because I also have the dispex in the array, and it fits neatly in one line there, instead of having to add it as an output arg in each ctor and then assign it in each one on top of it, which IMO is mostly duplicated code for no reason, when a data table can provide this info in one place���
I'm not sure I follow. You could simply move init_dispatch() call to event_ctor() and pass dispex descriptor as a parameter. vtbl and ref initialization could also be moved.