Re: [PHP-DEV] destruction of cross-referenced objects

2006-12-09 Thread Richard Lynch
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

Re: [PHP-DEV] destruction of cross-referenced objects

2006-12-07 Thread Arnold Daniels
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

Re: [PHP-DEV] destruction of cross-referenced objects

2006-12-07 Thread Richard Quadling
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

Re: [PHP-DEV] destruction of cross-referenced objects

2006-12-06 Thread Arnold Daniels
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

Re: [PHP-DEV] destruction of cross-referenced objects

2006-12-06 Thread Richard Quadling
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

Re: [PHP-DEV] destruction of cross-referenced objects

2006-12-05 Thread Arnold Daniels
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

Re: [PHP-DEV] destruction of cross-referenced objects

2006-12-05 Thread Richard Lynch
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