Thanks for that. I did actually consider doing this, but if my plugins are to have the freedom to do arbitary things then they should have the freedom to read (and possibly modify) all the main codes variables/behaviour.
This made me think that I'd end up having to pass all the variables I could to the plugin - which seems like a lot of housekeeping.
The alternative is to give access to stuff in the main scope to the plugins - which was the source of my early problems.
|