Hi!

> For short the thing is: "We have objects that do dynamic loading and
> there might be recursions. We could use recursion depth to decide
> when we want to do dynamic loading and when not.
> 

This looks like a hack covering for deficient design. Having objects
that look differently depending on hidden parameters without anybody
explicitly modifying them is a recipe for very hard to track bugs. I
don't think we should encourage this.

There are ways to present serialized view of the object (sleep/wakeup,
Serializable, etc.) but I don't think depth has anything to do with it.

-- 
Stas Malyshev
smalys...@gmail.com

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

Reply via email to