<?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: Загадка про addProperty()</title>
	<atom:link href="http://blog.pirrest.com/2007/11/27/23/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pirrest.com/2007/11/27/23/</link>
	<description>Чому блохи? Тому що чухаються :) Інколи флеш видає щось нове і подекуди не логічне. І це чухається, доки не зрозумієш чому так, а не інакше. А розчухати самотужки не завжди виходить, тож пропоную ловити бліх разом :)</description>
	<lastBuildDate>Thu, 18 Nov 2010 00:42:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: pirrest</title>
		<link>http://blog.pirrest.com/2007/11/27/23/#comment-13</link>
		<dc:creator>pirrest</dc:creator>
		<pubDate>Wed, 28 Nov 2007 14:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pirrest.com/2007/11/27/23/#comment-13</guid>
		<description>Добре! Дякую
Це пояснює чому 64, але чому немає &quot;256 levels of recursion were exceeded in one action list.&quot; ?</description>
		<content:encoded><![CDATA[<p>Добре! Дякую<br />
Це пояснює чому 64, але чому немає &#8220;256 levels of recursion were exceeded in one action list.&#8221; ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: гарна хлопиц</title>
		<link>http://blog.pirrest.com/2007/11/27/23/#comment-12</link>
		<dc:creator>гарна хлопиц</dc:creator>
		<pubDate>Wed, 28 Nov 2007 13:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pirrest.com/2007/11/27/23/#comment-12</guid>
		<description>...дык видно ж для AVM1 не такая конструкция виходит, а такая:

var i=0;
function a() { test(); }
function b() { a(); }
function c() { b(); }
function test(){
	i++;
	trace(i);
	c();
}
test();</description>
		<content:encoded><![CDATA[<p>&#8230;дык видно ж для AVM1 не такая конструкция виходит, а такая:</p>
<p>var i=0;<br />
function a() { test(); }<br />
function b() { a(); }<br />
function c() { b(); }<br />
function test(){<br />
	i++;<br />
	trace(i);<br />
	c();<br />
}<br />
test();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pirrest</title>
		<link>http://blog.pirrest.com/2007/11/27/23/#comment-11</link>
		<dc:creator>pirrest</dc:creator>
		<pubDate>Wed, 28 Nov 2007 13:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pirrest.com/2007/11/27/23/#comment-11</guid>
		<description>Воно було б так, якби такий код:

function test(){
	test();
}
test();

не видавав помилку &quot;256 levels of recursion were exceeded in one action list.&quot;

Тобто все ж таки 
AVM1: RECURSION_LEVEL_LIMIT = 255;
:)</description>
		<content:encoded><![CDATA[<p>Воно було б так, якби такий код:</p>
<p>function test(){<br />
	test();<br />
}<br />
test();</p>
<p>не видавав помилку &#8220;256 levels of recursion were exceeded in one action list.&#8221;</p>
<p>Тобто все ж таки<br />
AVM1: RECURSION_LEVEL_LIMIT = 255;<br />
:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: гарна хлопиц</title>
		<link>http://blog.pirrest.com/2007/11/27/23/#comment-10</link>
		<dc:creator>гарна хлопиц</dc:creator>
		<pubDate>Wed, 28 Nov 2007 09:44:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pirrest.com/2007/11/27/23/#comment-10</guid>
		<description>AVM1: RECURSION_LEVEL_LIMIT = 64;
AVM2: RECURSION_LEVEL_LIMIT = 255;

це индусские девелопери побачили шо 64 мало =)</description>
		<content:encoded><![CDATA[<p>AVM1: RECURSION_LEVEL_LIMIT = 64;<br />
AVM2: RECURSION_LEVEL_LIMIT = 255;</p>
<p>це индусские девелопери побачили шо 64 мало =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pirrest</title>
		<link>http://blog.pirrest.com/2007/11/27/23/#comment-9</link>
		<dc:creator>pirrest</dc:creator>
		<pubDate>Wed, 28 Nov 2007 09:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pirrest.com/2007/11/27/23/#comment-9</guid>
		<description>Пробачте, але ж у цьому й була загадка, чому рекурсія не зациклюється (видаючи помилку), а припиняється на 65-й ітерації (навіть не на 256-й)?</description>
		<content:encoded><![CDATA[<p>Пробачте, але ж у цьому й була загадка, чому рекурсія не зациклюється (видаючи помилку), а припиняється на 65-й ітерації (навіть не на 256-й)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: гарна хлопиц</title>
		<link>http://blog.pirrest.com/2007/11/27/23/#comment-8</link>
		<dc:creator>гарна хлопиц</dc:creator>
		<pubDate>Wed, 28 Nov 2007 08:41:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pirrest.com/2007/11/27/23/#comment-8</guid>
		<description>flea = { s:&quot;&quot; };
flea.setter = function():Void{};
flea.getter = function() {
	this.i = isNaN(this.i) ? 0 : this.i+1;
	flea.s += &#039;1&#039;;
	return this.property;
};
flea.addProperty(&quot;property&quot;, flea.getter, flea.setter);
flea.property;
trace(&quot;i: &quot;+flea.i);
trace(&quot;s: &quot;+flea.s);


видна чта рекрсия образуяся и на 64 итерациях ее убивит
по што ставя return this.property ? може return this.i хоцел?</description>
		<content:encoded><![CDATA[<p>flea = { s:&#8221;" };<br />
flea.setter = function():Void{};<br />
flea.getter = function() {<br />
	this.i = isNaN(this.i) ? 0 : this.i+1;<br />
	flea.s += &#8217;1&#8242;;<br />
	return this.property;<br />
};<br />
flea.addProperty(&#8220;property&#8221;, flea.getter, flea.setter);<br />
flea.property;<br />
trace(&#8220;i: &#8220;+flea.i);<br />
trace(&#8220;s: &#8220;+flea.s);</p>
<p>видна чта рекрсия образуяся и на 64 итерациях ее убивит<br />
по што ставя return this.property ? може return this.i хоцел?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: гарна хлопиц</title>
		<link>http://blog.pirrest.com/2007/11/27/23/#comment-7</link>
		<dc:creator>гарна хлопиц</dc:creator>
		<pubDate>Wed, 28 Nov 2007 08:36:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pirrest.com/2007/11/27/23/#comment-7</guid>
		<description>проперти ставяса тока на класс то бишь у тя прототипу в AS2.
а тыж ставя непомерну в объектовину flea.</description>
		<content:encoded><![CDATA[<p>проперти ставяса тока на класс то бишь у тя прототипу в AS2.<br />
а тыж ставя непомерну в объектовину flea.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

