<?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: A different use for custom namespaces (1/2)</title>
	<atom:link href="http://www.rubenswieringa.com/blog/a-different-use-for-custom-namespaces-1/feed" rel="self" type="application/rss+xml" />
	<link>http://www.rubenswieringa.com/blog/a-different-use-for-custom-namespaces-1</link>
	<description>Ruben Swieringa on Actionscript and a whole lot of other stuff..</description>
	<lastBuildDate>Wed, 14 Jul 2010 10:22:27 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Hasib</title>
		<link>http://www.rubenswieringa.com/blog/a-different-use-for-custom-namespaces-1/comment-page-1#comment-94278</link>
		<dc:creator>Hasib</dc:creator>
		<pubDate>Wed, 18 Nov 2009 08:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/?p=156#comment-94278</guid>
		<description>hey  RUBEN,
wow!!!!! i like it. 
thanks</description>
		<content:encoded><![CDATA[<p>hey  RUBEN,<br />
wow!!!!! i like it.<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shark&#8217;s Pond &#187; ?????????</title>
		<link>http://www.rubenswieringa.com/blog/a-different-use-for-custom-namespaces-1/comment-page-1#comment-91322</link>
		<dc:creator>Shark&#8217;s Pond &#187; ?????????</dc:creator>
		<pubDate>Sat, 05 Sep 2009 15:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/?p=156#comment-91322</guid>
		<description>[...] ???http://www.rubenswieringa.com/blog/a-different-use-for-custom-namespaces-1 [...]</description>
		<content:encoded><![CDATA[<p>[...] ???http://www.rubenswieringa.com/blog/a-different-use-for-custom-namespaces-1 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://www.rubenswieringa.com/blog/a-different-use-for-custom-namespaces-1/comment-page-1#comment-91299</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Fri, 04 Sep 2009 19:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/?p=156#comment-91299</guid>
		<description>Hey Zwetan,

Sure you can juggle around a little with references to namespaces to try and restrict access, though I have yet to see a waterproof method -- for example in the &lt;a href=&quot;http://livedocs.adobe.com/specs/actionscript/3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=as3_specification114.html&quot; rel=&quot;nofollow&quot;&gt;sample-code in the livedocs&lt;/a&gt;, all you have to do is find an instance of a valid class and pass its reference to &lt;code&gt;beMyFriend()&lt;/code&gt;, after that nothing stops you from calling &lt;code&gt;makeMyDay()&lt;/code&gt; from whatever class you please..

What I was trying to say in the start of my post was that there is no explicit (and foolproof) way to configure namespaces to only be applicable/accessible to certain classes.</description>
		<content:encoded><![CDATA[<p>Hey Zwetan,</p>
<p>Sure you can juggle around a little with references to namespaces to try and restrict access, though I have yet to see a waterproof method &#8212; for example in the <a href="http://livedocs.adobe.com/specs/actionscript/3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=as3_specification114.html" rel="nofollow">sample-code in the livedocs</a>, all you have to do is find an instance of a valid class and pass its reference to <code>beMyFriend()</code>, after that nothing stops you from calling <code>makeMyDay()</code> from whatever class you please..</p>
<p>What I was trying to say in the start of my post was that there is no explicit (and foolproof) way to configure namespaces to only be applicable/accessible to certain classes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zwetan</title>
		<link>http://www.rubenswieringa.com/blog/a-different-use-for-custom-namespaces-1/comment-page-1#comment-91288</link>
		<dc:creator>zwetan</dc:creator>
		<pubDate>Fri, 04 Sep 2009 11:58:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/?p=156#comment-91288</guid>
		<description>you can use namespaces to restrict access

see: http://livedocs.adobe.com/specs/actionscript/3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=as3_specification114.html


other use cases where namespace can be useful are unit tests, where for ex you need to set some internal value that you can not access directly in the class, but you want to setup to test a particular thing</description>
		<content:encoded><![CDATA[<p>you can use namespaces to restrict access</p>
<p>see: <a href="http://livedocs.adobe.com/specs/actionscript/3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=as3_specification114.html" rel="nofollow">http://livedocs.adobe.com/specs/actionscript/3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=as3_specification114.html</a></p>
<p>other use cases where namespace can be useful are unit tests, where for ex you need to set some internal value that you can not access directly in the class, but you want to setup to test a particular thing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://www.rubenswieringa.com/blog/a-different-use-for-custom-namespaces-1/comment-page-1#comment-91281</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Fri, 04 Sep 2009 06:25:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/?p=156#comment-91281</guid>
		<description>Thanks, of course this could just as easily be done with a method with a different name, but then again why would you use another name for a method that is just a different &lt;em&gt;&#039;version&#039;&lt;/em&gt; of the same functionality, and what would you call the method? I think namespaces are much more of a clean/elegant solution to marking different implementations of a method then getting into naming like &lt;em&gt;&quot;original_myMethod()&quot;&lt;/em&gt; and such.

Regarding your second point, I think you might be overgeneralizing -- while in some cases the need for such a solution to a problem may be an indicator of a glitch in your design, the idea described in this post is way too abstract to state that for every situation it is applied in there is a problem with the design.
On top of that as a developer you don&#039;t always have control over your superclass, it may be from a third-party precompiled library or a class you can&#039;t change the structure of because it&#039;ll break other existent functionality.</description>
		<content:encoded><![CDATA[<p>Thanks, of course this could just as easily be done with a method with a different name, but then again why would you use another name for a method that is just a different <em>&#8216;version&#8217;</em> of the same functionality, and what would you call the method? I think namespaces are much more of a clean/elegant solution to marking different implementations of a method then getting into naming like <em>&#8220;original_myMethod()&#8221;</em> and such.</p>
<p>Regarding your second point, I think you might be overgeneralizing &#8212; while in some cases the need for such a solution to a problem may be an indicator of a glitch in your design, the idea described in this post is way too abstract to state that for every situation it is applied in there is a problem with the design.<br />
On top of that as a developer you don&#8217;t always have control over your superclass, it may be from a third-party precompiled library or a class you can&#8217;t change the structure of because it&#8217;ll break other existent functionality.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim Birkelund</title>
		<link>http://www.rubenswieringa.com/blog/a-different-use-for-custom-namespaces-1/comment-page-1#comment-91256</link>
		<dc:creator>Kim Birkelund</dc:creator>
		<pubDate>Thu, 03 Sep 2009 20:47:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/?p=156#comment-91256</guid>
		<description>While this is very nifty, fail to see why this could simply be done by creating a method with a different name and then calling the original from there?

Secondly the need for this seems to me to indicate a case where inheritance really shouldn&#039;t be used. If you need to circumvent the implementation of your super-class there is most likely something wrong with the design in my opinion.</description>
		<content:encoded><![CDATA[<p>While this is very nifty, fail to see why this could simply be done by creating a method with a different name and then calling the original from there?</p>
<p>Secondly the need for this seems to me to indicate a case where inheritance really shouldn&#8217;t be used. If you need to circumvent the implementation of your super-class there is most likely something wrong with the design in my opinion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A different use for custom namespaces (2/2) : Ruben&#8217;s blog</title>
		<link>http://www.rubenswieringa.com/blog/a-different-use-for-custom-namespaces-1/comment-page-1#comment-91250</link>
		<dc:creator>A different use for custom namespaces (2/2) : Ruben&#8217;s blog</dc:creator>
		<pubDate>Thu, 03 Sep 2009 19:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubenswieringa.com/blog/?p=156#comment-91250</guid>
		<description>[...] part of the subject I seperated the content over two seperate posts (of which this is the second). The previous explains the idea while this one shows a possbible use-case. I suggest you read the first post if [...]</description>
		<content:encoded><![CDATA[<p>[...] part of the subject I seperated the content over two seperate posts (of which this is the second). The previous explains the idea while this one shows a possbible use-case. I suggest you read the first post if [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
