Don't want to start a whole discussion again on this, but the adoption of OO paradigm eliminates the need for most globals in the first place. That's the advantage, along with a lot of others... Victor Kane http://awebfactory.com.ar On Sat, Jun 14, 2008 at 12:09 PM, Adrian Rossouw <adrian@bryght.com> wrote:
On 14 Jun 2008, at 5:00 PM, Syscrusher wrote:
If we're talking about that kind of a major change, is it time to revisit the question of whether Drupal should use PHP's OOP features, now that the PHP language has better OO support than it did several years ago?
how is that a major change ?
we simply find all occurences of global and $GLOBALS, and replace it with context_get.
we will also be able to track whenever global variables change because you need to use context_set to use them, so it's impossible to fsck up your site by accidentally wiping out globals.