Closed mfkl closed 6 years ago
https://github.com/Capgemini/Cauldron/wiki/Contructor-interception Coming in the next version
Awesome! Good job.
Cherry on cake would be to able to do conditional base calls (https://code.videolan.org/videolan/libvlcpp/blob/master/vlcpp/MediaDiscoverer.hpp#L92), but that seems hard to do since Attributes can't take Actions as constructors...
Hmmm... That should be possible somehow... Let me think about that.
Following up on #44 regarding constructor interception.
For my personal use case, I'd need to be able to run code before anything (including the base class call).
What's the other option? Inside the actual constructor body? Don't think that changes anything for me either way but other people might prefer the injected code to be run outside of the body?
It does not affect my particular use case, but I'd say yes. To remain consistent with the interception API for methods and properties, for one. And because user code can always throw and they might want to handle it.