<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jozef Chúťka&#039;s blog &#187; get</title>
	<atom:link href="http://blog.yoz.sk/tag/get/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yoz.sk</link>
	<description>My life, my work</description>
	<lastBuildDate>Tue, 31 Jan 2012 12:40:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>private setter, public getter</title>
		<link>http://blog.yoz.sk/2009/10/private-setter-public-getter/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=private-setter-public-getter</link>
		<comments>http://blog.yoz.sk/2009/10/private-setter-public-getter/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 13:58:33 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[getter]]></category>
		<category><![CDATA[namespace]]></category>
		<category><![CDATA[private]]></category>
		<category><![CDATA[public]]></category>
		<category><![CDATA[set]]></category>
		<category><![CDATA[setter]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=26</guid>
		<description><![CDATA[It is possible to make private setter and public getter on actionscript classes. All you need is to use proper namespaces for getter and setter within the class. usage: compilation error:]]></description>
			<content:encoded><![CDATA[<p>It is possible to make private setter and public getter on actionscript classes. All you need is to use proper namespaces for getter and setter within the class.</p>
<p><span id="more-26"></span></p>
<pre class="brush: as3; title: ; notranslate">package
{
    public class GSTest extends Object
    {
        private var _foo:String;

        public function GSTest()
        {
            super();

            // setting value
            private::foo = &quot;bar&quot;;

            // getting value
            trace(public::foo);
        }

        public function get foo():String
        {
             return _foo;
        }

        private function set foo(value:String):void
        {
             _foo = value;
        }
    }
}</pre>
<p>usage:</p>
<pre class="brush: as3; title: ; notranslate">var gsTest:GSTest = new GSTest();
trace(gsTest.foo); // returns &quot;bar&quot;</pre>
<p>compilation error:</p>
<pre class="brush: as3; title: ; notranslate">var gsTest:GSTest = new GSTest();
gsTest.foo = &quot;hallo&quot;;</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2009/10/private-setter-public-getter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

