Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > $this->this and avoiding circular references
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 30th April 19:30
jochem
External User
 
Posts: 1
Default $this->this and avoiding circular references



given what your work has done for me I can't consider it a
problem :-) just thought it was kinda funny.

regarding the actually topic of this thread I'm very interested
in the concept of 'weak references' (as Apple seems to call them),
what '$this->this' is all about, and whether using reference notation
with object variable assignment is even allowed, whether it it makes
a difference and what the future holds with regard to being able to
use/create references to object 'handles'.

I remember someone else asking on this list about the ability/possiblity
of being able to make the distinction between object 'handles' and references
to object 'handles' - I can't remember anythnig conclusive coming out of
the discussion.

regardless I feel that Alan did make some valid points in this area,
given that the core/dev team may think that Alan's app (in this case) would
be better off being refactored it might be an idea for some do***entation
to be created that gives an indication on how to overcome these percieved
referencing problems (i.e. some strategies on how to design something
that does work with in the confines of php's capabilities)

for the record I have an OO based import script that imports about 13
files, one of which has 500,000 lines of data, and I see that the memory usage
of my script grows and grows (upto about 100Mb) - I figure it could do it
alot more efficiently, having some ammunition regarding how to tackle
such an issue (in general terms) would be a great benefit - given the
generic nature of the problem I believe many more developers could benefit.
kind rgds, Jochem

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


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666