On Tue, December 5, 2006 4:45 pm, Arnold Daniels wrote:
> Richard Lynch schreef:
>> On Mon, December 4, 2006 7:21 pm, Arnold Daniels wrote:
>>
>>> I'm struggling with the problem that cross-referenced objects don't
>>> get
>>> destroyed. I can off course write a method to break the
>>> cross-refere
Hi,
I don't think a discussion on programming methods is something for the
PHP internals list. I understand how you do it, but I (and perhaps
others) would like to do it differently. I have tried to explain why and
I hope you understand.
I would like to be able to prevent memory leaks without
The reason I have this base class is that there is equivalent
functionality within the built in object in PHP. No concept of
ownership or relationship.
In my rudimentary framework, nearly my components are related in some
way. VERY little stands alone.
Therefore, for me, the base object having o
Hi,
I think having to extend a base class is not a good idea. First of all
you deprive yourself of extending a class of a library you haven't
written (like something from Zend Framework or PEAR). Second it puts a
huge constraint on the code of the users of your library, because any
class they
In user land, I have an abstract_object like this
(http://rquadling.php1h.com/abstract_object.html).
I've come from a Delphi environment so some of the code you see is
based upon some of the ideas I see in the TObject class.
There are some comments, but the basic idea is there.
On 05/12/06, Arn
Richard Lynch schreef:
On Mon, December 4, 2006 7:21 pm, Arnold Daniels wrote:
I'm struggling with the problem that cross-referenced objects don't
get
destroyed. I can off course write a method to break the
cross-reference,
but that's kind of a pain in the butt, especially if the
cross-refe
On Mon, December 4, 2006 7:21 pm, Arnold Daniels wrote:
> I'm struggling with the problem that cross-referenced objects don't
> get
> destroyed. I can off course write a method to break the
> cross-reference,
> but that's kind of a pain in the butt, especially if the
> cross-reference
> is not stra