<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Real programming with PHP 5.3 (part 2): JavaScript-style classes</title>
	<atom:link href="http://blog.agilephp.com/2009/03/31/real-programming-with-php-53-part-2-javascript-style-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.agilephp.com/2009/03/31/real-programming-with-php-53-part-2-javascript-style-classes/</link>
	<description>Dagfinn Reiersøl on PHP, agile development, Ruby and other addictive substances</description>
	<lastBuildDate>Fri, 23 Jul 2010 20:17:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dellorbo Giulio</title>
		<link>http://blog.agilephp.com/2009/03/31/real-programming-with-php-53-part-2-javascript-style-classes/comment-page-1/#comment-706</link>
		<dc:creator>Dellorbo Giulio</dc:creator>
		<pubDate>Thu, 01 Oct 2009 18:01:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.agilephp.com/?p=1535#comment-706</guid>
		<description>Hi,

the problem while using closures to add methods is that the closure cannot access private or protected obj props nor they can call private/protected method&#039;s...</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>the problem while using closures to add methods is that the closure cannot access private or protected obj props nor they can call private/protected method&#8217;s&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP 5.3 and PHP 6 the future &#171; 3wstudio</title>
		<link>http://blog.agilephp.com/2009/03/31/real-programming-with-php-53-part-2-javascript-style-classes/comment-page-1/#comment-648</link>
		<dc:creator>PHP 5.3 and PHP 6 the future &#171; 3wstudio</dc:creator>
		<pubDate>Sat, 22 Aug 2009 08:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.agilephp.com/?p=1535#comment-648</guid>
		<description>[...] Real programming with PHP 5.3 (part 2): JavaScript-style classes [...]</description>
		<content:encoded><![CDATA[<p>[...] Real programming with PHP 5.3 (part 2): JavaScript-style classes [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dagfinn</title>
		<link>http://blog.agilephp.com/2009/03/31/real-programming-with-php-53-part-2-javascript-style-classes/comment-page-1/#comment-589</link>
		<dc:creator>dagfinn</dc:creator>
		<pubDate>Mon, 25 May 2009 06:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.agilephp.com/?p=1535#comment-589</guid>
		<description>@derosion: I admit I haven&#039;t considered that. I&#039;ll have to investigate. I have other examples that I believe would not work if it were a copy.</description>
		<content:encoded><![CDATA[<p>@derosion: I admit I haven&#8217;t considered that. I&#8217;ll have to investigate. I have other examples that I believe would not work if it were a copy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: derosion</title>
		<link>http://blog.agilephp.com/2009/03/31/real-programming-with-php-53-part-2-javascript-style-classes/comment-page-1/#comment-585</link>
		<dc:creator>derosion</dc:creator>
		<pubDate>Sat, 23 May 2009 18:33:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.agilephp.com/?p=1535#comment-585</guid>
		<description>Hey,

I might (probably am) be totally confused here but in reference to your first &quot;hello world&quot; example where you pass in $self as a lexical value to your hello and goodbye functions.

Reading http://wiki.php.net/rfc/closures it says:

&quot;By default, all imported variables are copied as values into the closure.&quot;

So with this said, is $self a copy of $this rather than a reference?</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>I might (probably am) be totally confused here but in reference to your first &#8220;hello world&#8221; example where you pass in $self as a lexical value to your hello and goodbye functions.</p>
<p>Reading <a href="http://wiki.php.net/rfc/closures" rel="nofollow">http://wiki.php.net/rfc/closures</a> it says:</p>
<p>&#8220;By default, all imported variables are copied as values into the closure.&#8221;</p>
<p>So with this said, is $self a copy of $this rather than a reference?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dagfinn</title>
		<link>http://blog.agilephp.com/2009/03/31/real-programming-with-php-53-part-2-javascript-style-classes/comment-page-1/#comment-315</link>
		<dc:creator>dagfinn</dc:creator>
		<pubDate>Thu, 02 Apr 2009 17:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.agilephp.com/?p=1535#comment-315</guid>
		<description>@Ionut: I might have noticed it if you had posted it in the PHP Application Design forum. On the other hand, perhaps not. Anyway, it&#039;s interesting that we seem to have four different independent implementations of this idea.</description>
		<content:encoded><![CDATA[<p>@Ionut: I might have noticed it if you had posted it in the PHP Application Design forum. On the other hand, perhaps not. Anyway, it&#8217;s interesting that we seem to have four different independent implementations of this idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ionut G. Stan</title>
		<link>http://blog.agilephp.com/2009/03/31/real-programming-with-php-53-part-2-javascript-style-classes/comment-page-1/#comment-314</link>
		<dc:creator>Ionut G. Stan</dc:creator>
		<pubDate>Thu, 02 Apr 2009 15:01:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.agilephp.com/?p=1535#comment-314</guid>
		<description>I had this idea back in August 2008, but at that point nobody seemed to care about it.
I&#039;ve made it public in a thread on sitepoint.com[1], where apparently just one person found it to be interesting.

Yeah, Amenthes is me.

[1] http://www.sitepoint.com/forums/showthread.php?t=565576</description>
		<content:encoded><![CDATA[<p>I had this idea back in August 2008, but at that point nobody seemed to care about it.<br />
I&#8217;ve made it public in a thread on sitepoint.com[1], where apparently just one person found it to be interesting.</p>
<p>Yeah, Amenthes is me.</p>
<p>[1] <a href="http://www.sitepoint.com/forums/showthread.php?t=565576" rel="nofollow">http://www.sitepoint.com/forums/showthread.php?t=565576</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dagfinn</title>
		<link>http://blog.agilephp.com/2009/03/31/real-programming-with-php-53-part-2-javascript-style-classes/comment-page-1/#comment-313</link>
		<dc:creator>dagfinn</dc:creator>
		<pubDate>Thu, 02 Apr 2009 08:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.agilephp.com/?p=1535#comment-313</guid>
		<description>@Tarjei: Since a method in this style is simply the content in a instance variable, you can overwrite it by whatever means you would otherwise use to change an instance variable. *How* you would want to do that, considering visibility restrictions and so on, is another matter.</description>
		<content:encoded><![CDATA[<p>@Tarjei: Since a method in this style is simply the content in a instance variable, you can overwrite it by whatever means you would otherwise use to change an instance variable. *How* you would want to do that, considering visibility restrictions and so on, is another matter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tarjei</title>
		<link>http://blog.agilephp.com/2009/03/31/real-programming-with-php-53-part-2-javascript-style-classes/comment-page-1/#comment-312</link>
		<dc:creator>Tarjei</dc:creator>
		<pubDate>Thu, 02 Apr 2009 07:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.agilephp.com/?p=1535#comment-312</guid>
		<description>Is it possible to overwrite existing functions? 

In python I find DuckTyping indispensable for testing as I can easily just stub out one function from an object and still test the rest of the object.</description>
		<content:encoded><![CDATA[<p>Is it possible to overwrite existing functions? </p>
<p>In python I find DuckTyping indispensable for testing as I can easily just stub out one function from an object and still test the rest of the object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Gunther</title>
		<link>http://blog.agilephp.com/2009/03/31/real-programming-with-php-53-part-2-javascript-style-classes/comment-page-1/#comment-306</link>
		<dc:creator>Lars Gunther</dc:creator>
		<pubDate>Tue, 31 Mar 2009 21:11:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.agilephp.com/?p=1535#comment-306</guid>
		<description>Andrea Giammarchi takes this a whole lot further:

http://webreflection.blogspot.com/2009/03/jsphp-javascript-object-like-php-class.html</description>
		<content:encoded><![CDATA[<p>Andrea Giammarchi takes this a whole lot further:</p>
<p><a href="http://webreflection.blogspot.com/2009/03/jsphp-javascript-object-like-php-class.html" rel="nofollow">http://webreflection.blogspot.com/2009/03/jsphp-javascript-object-like-php-class.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dagfinn</title>
		<link>http://blog.agilephp.com/2009/03/31/real-programming-with-php-53-part-2-javascript-style-classes/comment-page-1/#comment-305</link>
		<dc:creator>dagfinn</dc:creator>
		<pubDate>Tue, 31 Mar 2009 16:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.agilephp.com/?p=1535#comment-305</guid>
		<description>@weltraumschaf: You should be able to do the first two, but not the last one.  The closure is an object belonging to the Closure class, but the Closure class has no methods.</description>
		<content:encoded><![CDATA[<p>@weltraumschaf: You should be able to do the first two, but not the last one.  The closure is an object belonging to the Closure class, but the Closure class has no methods.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
