<?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: AS2 Lazy Construction Weirdness</title>
	<atom:link href="http://www.razorberry.com/blog/archives/2005/06/14/oo-weirdness/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.razorberry.com/blog/archives/2005/06/14/oo-weirdness/</link>
	<description>since 2004!</description>
	<pubDate>Wed, 07 Jan 2009 00:39:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Keith Peters</title>
		<link>http://www.razorberry.com/blog/archives/2005/06/14/oo-weirdness/comment-page-1/#comment-106</link>
		<dc:creator>Keith Peters</dc:creator>
		<pubDate>Tue, 14 Jun 2005 18:14:56 +0000</pubDate>
		<guid isPermaLink="false">/?p=17#comment-106</guid>
		<description>Robert takes the prize.</description>
		<content:encoded><![CDATA[<p>Robert takes the prize.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ash</title>
		<link>http://www.razorberry.com/blog/archives/2005/06/14/oo-weirdness/comment-page-1/#comment-105</link>
		<dc:creator>Ash</dc:creator>
		<pubDate>Tue, 14 Jun 2005 18:03:56 +0000</pubDate>
		<guid isPermaLink="false">/?p=17#comment-105</guid>
		<description>Haha.. thanks Robert, I knew I was missing something really basic. :) Talk about over-thinking a problem..!</description>
		<content:encoded><![CDATA[<p>Haha.. thanks Robert, I knew I was missing something really basic. <img src='http://www.razorberry.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Talk about over-thinking a problem..!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Penner</title>
		<link>http://www.razorberry.com/blog/archives/2005/06/14/oo-weirdness/comment-page-1/#comment-104</link>
		<dc:creator>Robert Penner</dc:creator>
		<pubDate>Tue, 14 Jun 2005 17:43:27 +0000</pubDate>
		<guid isPermaLink="false">/?p=17#comment-104</guid>
		<description>The compiler will add a call to super() in subclasses if omitted.</description>
		<content:encoded><![CDATA[<p>The compiler will add a call to super() in subclasses if omitted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cedric</title>
		<link>http://www.razorberry.com/blog/archives/2005/06/14/oo-weirdness/comment-page-1/#comment-103</link>
		<dc:creator>cedric</dc:creator>
		<pubDate>Tue, 14 Jun 2005 16:33:54 +0000</pubDate>
		<guid isPermaLink="false">/?p=17#comment-103</guid>
		<description>I know it is ... but I was *just* doubting this would work with an 'ExtendedWidget' that doesn't calls super in its constructor ... your composition made me go south ;)

thanks!</description>
		<content:encoded><![CDATA[<p>I know it is &#8230; but I was *just* doubting this would work with an &#8216;ExtendedWidget&#8217; that doesn&#8217;t calls super in its constructor &#8230; your composition made me go south <img src='http://www.razorberry.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ash</title>
		<link>http://www.razorberry.com/blog/archives/2005/06/14/oo-weirdness/comment-page-1/#comment-102</link>
		<dc:creator>Ash</dc:creator>
		<pubDate>Tue, 14 Jun 2005 16:20:41 +0000</pubDate>
		<guid isPermaLink="false">/?p=17#comment-102</guid>
		<description>Yep, thats the goal!</description>
		<content:encoded><![CDATA[<p>Yep, thats the goal!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cedric</title>
		<link>http://www.razorberry.com/blog/archives/2005/06/14/oo-weirdness/comment-page-1/#comment-101</link>
		<dc:creator>cedric</dc:creator>
		<pubDate>Tue, 14 Jun 2005 16:18:38 +0000</pubDate>
		<guid isPermaLink="false">/?p=17#comment-101</guid>
		<description>I see ... 

so if ExtendedWidget extends Widget and does not call 'super()' in its constructor, it will still initialize eventDispatcher ??</description>
		<content:encoded><![CDATA[<p>I see &#8230; </p>
<p>so if ExtendedWidget extends Widget and does not call &#8217;super()&#8217; in its constructor, it will still initialize eventDispatcher ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ash</title>
		<link>http://www.razorberry.com/blog/archives/2005/06/14/oo-weirdness/comment-page-1/#comment-100</link>
		<dc:creator>Ash</dc:creator>
		<pubDate>Tue, 14 Jun 2005 16:11:40 +0000</pubDate>
		<guid isPermaLink="false">/?p=17#comment-100</guid>
		<description>Hi cedric,

The Control class is just an example class to show things working, sorry for not being clear.
There would be other classes not shown here that extend Widget.

In the control class you can replace "myWidget = new Widget();" with "myWidget = new ExtendedWidget();"</description>
		<content:encoded><![CDATA[<p>Hi cedric,</p>
<p>The Control class is just an example class to show things working, sorry for not being clear.<br />
There would be other classes not shown here that extend Widget.</p>
<p>In the control class you can replace &#8220;myWidget = new Widget();&#8221; with &#8220;myWidget = new ExtendedWidget();&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cedric</title>
		<link>http://www.razorberry.com/blog/archives/2005/06/14/oo-weirdness/comment-page-1/#comment-99</link>
		<dc:creator>cedric</dc:creator>
		<pubDate>Tue, 14 Jun 2005 16:06:43 +0000</pubDate>
		<guid isPermaLink="false">/?p=17#comment-99</guid>
		<description>you are not extending the 'Control' class from 'Widget'
using composition (as you did hereabove) always calls the constructor function, hence this always works, but it shouldn't work if you 'extend' Control from Widget</description>
		<content:encoded><![CDATA[<p>you are not extending the &#8216;Control&#8217; class from &#8216;Widget&#8217;<br />
using composition (as you did hereabove) always calls the constructor function, hence this always works, but it shouldn&#8217;t work if you &#8216;extend&#8217; Control from Widget</p>
]]></content:encoded>
	</item>
</channel>
</rss>
