Hi Andi Gutmans, you wrote:
Hi,

This has been discussed in the past (see the archives of either this list or engine2).
You'll have to manage with the existing ones.
Very sad. Why is that?

I took a look into the archive but couldn't find any reason!?

Is it such a hard problem to get this work?

I don't primary need this to access vars, but object methods
(ok, objects are also vars...)
of a large application framework I'm working on.

I can't understand what the problem is.
Ok, probably many people would misuse that for all there
global vars - is that the argument against it?
Is it a performance problem?

But this 'feature' would help frameworks or huge applications
to get shorter/easier access to there API !

$_MYFW->method_a(); is nicer than $GLOBALS['_MYFW']->method_a();
and also shorter for vars u're using very often...

Regards,
Matthias




Andi


At 09:21 PM 8/23/2003 +0200, Matthias Nothhaft wrote:

Hi Devs,

is there a possibility to get a php function like

declare_superglobal($_MYVAR);

And then be able to use $_MYVAR as the
existing superglobals ($_GET, $_SESSION, etc.) ???

I think, it would be a really nice feature!
Is that a huge problem to get this work?


Regards, Matthias

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php





-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to