Re: [PHP-DEV] Re: function call chaining

2010-01-20 Thread Christian Grobmeier
>>  I also think that: >>      $foo = (new bar())->someSetter(); > > someSetter() could return $this, although unlikely. The result of the line > above would be that the bar object is garbage collected after being created > & method someSetter() invoked. To keep it one would have to do: In very ra

Re: [PHP-DEV] Re: function call chaining

2010-01-20 Thread Christian Grobmeier
On Wed, Jan 20, 2010 at 11:35 AM, Christian Grobmeier wrote: >>> Why would this imply "dropping" the object? >>> >>> This: >>>    $foo = (new bar())->someSetter(); >>> Looks a lot better than this >>>    $foo = new bar(); >&g

[PHP-DEV] How does the interpreter work

2009-12-22 Thread Christian Grobmeier
Hi all again, first thanks, for all the links. >> In java world there is the JVM specification, I hoped there is >> something for PHP too. > > Well there's one quite complete document about it available - the source > code ;-) PHP isn't developed following standards but simply by > implementing a

Re: [PHP-DEV] How does the interpreter work

2009-12-22 Thread Christian Grobmeier
Hi, > Rob Nicholson wrote: > Another good reference is Sara Goleman's book "Extending and Embedding PHP" actually this is what i was searching for. I will order this book now. Thanks for the tipp! Christian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://w

[PHP-DEV] How does the interpreter work

2009-12-21 Thread Christian Grobmeier
Hi all, I would like to learn more about how the interpreter works, but I was unable to find good documents on the web. Basically I am thinking on something about allocation of variables, how does object creation work and such stuff. Maybe something on the overall architecture of PHP would be of i