I actually do this kind of "POD", passing the main plugin instance instead (which I can derivate almost everythings).
Thanks to everybody!
How would you share a "global" variable for each plugin instance?
- KVRAF
- 7891 posts since 12 Feb, 2006 from Helsinki, Finland
Well, my point was that separating the "common stuff" and the actual plugin into two separate objects (one containing the other) can simplify code. Yes, you can pass the whole plugin object around and it works, but it can add some code-level complexity and couple your "common stuff" into your actual plugin more than if you kept them logically separate.Nowhk wrote: I actually do this kind of "POD", passing the main plugin instance instead (which I can derivate almost everythings).
YMMV, just thought I'd share.