<?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: 关于一笔试题(Iterator模式)</title>
	<atom:link href="http://www.laruence.com/2008/10/31/574.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.laruence.com/2008/10/31/574.html</link>
	<description>PHP语言, PHP扩展, Zend引擎相关的研究,技术,新闻分享 - 左手代码 右手诗</description>
	<lastBuildDate>Thu, 09 Feb 2012 12:31:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Jacob</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-4155</link>
		<dc:creator>Jacob</dc:creator>
		<pubDate>Thu, 14 Apr 2011 05:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-4155</guid>
		<description>最近在准备腾讯面试，看到了这个题，感觉到似乎有些问题？这样的实现只能对自己实现的迭代器遍历，且只能遍历封装好的数组属性，如果是一个已经定义好的类呢，里面的私有属性并不是封装在一个数组中，怎么遍历呢？</description>
		<content:encoded><![CDATA[<p>最近在准备腾讯面试，看到了这个题，感觉到似乎有些问题？这样的实现只能对自己实现的迭代器遍历，且只能遍历封装好的数组属性，如果是一个已经定义好的类呢，里面的私有属性并不是封装在一个数组中，怎么遍历呢？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 关于一笔试题(Iterator模式) &#124; 万维网黑客联盟</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-3962</link>
		<dc:creator>关于一笔试题(Iterator模式) &#124; 万维网黑客联盟</dc:creator>
		<pubDate>Sun, 20 Mar 2011 13:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-3962</guid>
		<description>[...] 本文地址: http://www.laruence.com/2008/10/31/574.html [...]</description>
		<content:encoded><![CDATA[<p>[...] 本文地址: <a href="http://www.laruence.com/2008/10/31/574.html" rel="nofollow">http://www.laruence.com/2008/10/31/574.html</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: php教程</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-3744</link>
		<dc:creator>php教程</dc:creator>
		<pubDate>Thu, 24 Feb 2011 05:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-3744</guid>
		<description>这个设计模式，应该起来比较难</description>
		<content:encoded><![CDATA[<p>这个设计模式，应该起来比较难</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP源码阅读笔记二十四 ：iterator实现中当值为false时无法完成迭代的原因分析 &#124; 胖子的空间</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-2540</link>
		<dc:creator>PHP源码阅读笔记二十四 ：iterator实现中当值为false时无法完成迭代的原因分析 &#124; 胖子的空间</dc:creator>
		<pubDate>Mon, 26 Apr 2010 00:49:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-2540</guid>
		<description>[...]  在鸟哥的blog中，很久以前一篇文章对iterator的实现作了一些说明：http://www.laruence.com/2008/10/31/574.html 但是并没有对false的值的处理作相关说明 [...]</description>
		<content:encoded><![CDATA[<p>[...]  在鸟哥的blog中，很久以前一篇文章对iterator的实现作了一些说明：http://www.laruence.com/2008/10/31/574.html 但是并没有对false的值的处理作相关说明 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phppan</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-2536</link>
		<dc:creator>phppan</dc:creator>
		<pubDate>Sat, 24 Apr 2010 02:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-2536</guid>
		<description>next方法在接口的定义中其返回值为void
abstract public void next ( void )</description>
		<content:encoded><![CDATA[<p>next方法在接口的定义中其返回值为void<br />
abstract public void next ( void )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simaopig</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-2385</link>
		<dc:creator>simaopig</dc:creator>
		<pubDate>Tue, 22 Dec 2009 06:06:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-2385</guid>
		<description>话说我不知道SPL。。。残念</description>
		<content:encoded><![CDATA[<p>话说我不知道SPL。。。残念</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 儿童游戏</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-1878</link>
		<dc:creator>儿童游戏</dc:creator>
		<pubDate>Thu, 16 Jul 2009 05:04:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-1878</guid>
		<description>文章不错</description>
		<content:encoded><![CDATA[<p>文章不错</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xiaoxiao</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-1821</link>
		<dc:creator>Xiaoxiao</dc:creator>
		<pubDate>Mon, 08 Jun 2009 09:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-1821</guid>
		<description>这个题,其实考的就是 PHP SPL吧,不用看源码吧...</description>
		<content:encoded><![CDATA[<p>这个题,其实考的就是 PHP SPL吧,不用看源码吧&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jessica</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-1566</link>
		<dc:creator>Jessica</dc:creator>
		<pubDate>Fri, 27 Feb 2009 09:21:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-1566</guid>
		<description>class test {
	private $a = 1;
	private $b = 2;
	function getVars() {
		$array = get_defined_vars();
		return $array[&#039;this&#039;];
	}
}
$test = new test();
$testArr = $test-&gt;getVars();
print_r($testArr);</description>
		<content:encoded><![CDATA[<p>class test {<br />
	private $a = 1;<br />
	private $b = 2;<br />
	function getVars() {<br />
		$array = get_defined_vars();<br />
		return $array['this'];<br />
	}<br />
}<br />
$test = new test();<br />
$testArr = $test-&gt;getVars();<br />
print_r($testArr);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jessica</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-1565</link>
		<dc:creator>Jessica</dc:creator>
		<pubDate>Fri, 27 Feb 2009 09:20:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-1565</guid>
		<description>getVars();
print_r($testArr);</description>
		<content:encoded><![CDATA[<p>getVars();<br />
print_r($testArr);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 雪候鸟</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-1561</link>
		<dc:creator>雪候鸟</dc:creator>
		<pubDate>Sat, 21 Feb 2009 17:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-1561</guid>
		<description>@alexsun, 幸会,幸会~~</description>
		<content:encoded><![CDATA[<p>@alexsun, 幸会,幸会~~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alexsun</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-1560</link>
		<dc:creator>alexsun</dc:creator>
		<pubDate>Sat, 21 Feb 2009 16:00:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-1560</guid>
		<description>汗，这题是我出的，居然在这儿看到答案。。。面试题目要改一下了。</description>
		<content:encoded><![CDATA[<p>汗，这题是我出的，居然在这儿看到答案。。。面试题目要改一下了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: laotan</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-476</link>
		<dc:creator>laotan</dc:creator>
		<pubDate>Wed, 10 Dec 2008 02:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-476</guid>
		<description>关于SPL的中文资料很少，只能顶着E文</description>
		<content:encoded><![CDATA[<p>关于SPL的中文资料很少，只能顶着E文</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bun Wong</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-358</link>
		<dc:creator>Bun Wong</dc:creator>
		<pubDate>Tue, 18 Nov 2008 02:14:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-358</guid>
		<description>顶！</description>
		<content:encoded><![CDATA[<p>顶！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackywdx</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-340</link>
		<dc:creator>jackywdx</dc:creator>
		<pubDate>Fri, 14 Nov 2008 07:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-340</guid>
		<description>呵呵，这段时间也正在研究PHP源代码，比较想了解PHP的内部实现。
前几天正在想PHP是如何实现foreach循环的呢，正好搜到了。</description>
		<content:encoded><![CDATA[<p>呵呵，这段时间也正在研究PHP源代码，比较想了解PHP的内部实现。<br />
前几天正在想PHP是如何实现foreach循环的呢，正好搜到了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 雪候鸟</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-329</link>
		<dc:creator>雪候鸟</dc:creator>
		<pubDate>Thu, 13 Nov 2008 15:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-329</guid>
		<description>foreach的结构相对来说比较复杂,它不是一整块的代码块,
它是在语法分析阶段, 做了一些工作.
大体就是,在语法分析阶段(zend_language_parser.y)的时候,分别通过定位,foreach开始,中间代码,结束,从而设置出一个带有的循环的OPCODES序列..大体就是这样,如果有兴趣,可以看看上面提到的源文件.</description>
		<content:encoded><![CDATA[<p>foreach的结构相对来说比较复杂,它不是一整块的代码块,<br />
它是在语法分析阶段, 做了一些工作.<br />
大体就是,在语法分析阶段(zend_language_parser.y)的时候,分别通过定位,foreach开始,中间代码,结束,从而设置出一个带有的循环的OPCODES序列..大体就是这样,如果有兴趣,可以看看上面提到的源文件.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zvaly</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-327</link>
		<dc:creator>zvaly</dc:creator>
		<pubDate>Thu, 13 Nov 2008 15:22:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-327</guid>
		<description>foreach的原代码位置是哪里？楼主教一手吧 呵呵</description>
		<content:encoded><![CDATA[<p>foreach的原代码位置是哪里？楼主教一手吧 呵呵</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jcadam</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-272</link>
		<dc:creator>jcadam</dc:creator>
		<pubDate>Mon, 03 Nov 2008 12:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-272</guid>
		<description>实现一个完整的迭代器不是那么容易的事情。PHP这种弱类型语言的做法比较灵活。JAVA的实现就比较复杂；C＋＋这种半弱不强的就更难一点。类型的POD,trivial判断，还有参数传导需要很多技巧......</description>
		<content:encoded><![CDATA[<p>实现一个完整的迭代器不是那么容易的事情。PHP这种弱类型语言的做法比较灵活。JAVA的实现就比较复杂；C＋＋这种半弱不强的就更难一点。类型的POD,trivial判断，还有参数传导需要很多技巧&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fy</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-269</link>
		<dc:creator>fy</dc:creator>
		<pubDate>Mon, 03 Nov 2008 05:31:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-269</guid>
		<description>果然很土</description>
		<content:encoded><![CDATA[<p>果然很土</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 玉面修罗</title>
		<link>http://www.laruence.com/2008/10/31/574.html/comment-page-1#comment-267</link>
		<dc:creator>玉面修罗</dc:creator>
		<pubDate>Sat, 01 Nov 2008 06:17:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.laruence.com/?p=574#comment-267</guid>
		<description>在Zend Framework源码中可以看到大量SPL的应用
在看ZF代码之前我也确实还不知道居然有SPL这个东西</description>
		<content:encoded><![CDATA[<p>在Zend Framework源码中可以看到大量SPL的应用<br />
在看ZF代码之前我也确实还不知道居然有SPL这个东西</p>
]]></content:encoded>
	</item>
</channel>
</rss>

