At 10:49 AM 2/10/2004 +0100, Eric Daspet wrote:
Andi Gutmans wrote:
At 03:55 PM 2/9/2004 +0000, Stephane Drouard wrote:
IMO, this is bad programming. If an object wants to access another object (global or not), it has to own a reference on it

You are getting into coding style now.

It is coding style, you are right.
However, order of destructors cannot be worse that "in random order", can them ?

Eric,
Yes it can be worse, and all of the reasons have been mentioned. I'm not sure you quite realize the way the shutdown in PHP works and the consequences keeping any kind of order (if that is definable) has.


I am sticking to the current implementation because I think it is the best trade-off.

Andi

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



Reply via email to