<?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"
	>
<channel>
	<title>Comments on: meta-methods: python vs tinypy</title>
	<atom:link href="http://www.philhassey.com/blog/2008/05/27/meta-methods-python-vs-tinypy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.philhassey.com/blog/2008/05/27/meta-methods-python-vs-tinypy/</link>
	<description>games, tech, web, stuff, biz, and bilge</description>
	<pubDate>Wed, 03 Dec 2008 07:13:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Chris Swetenham</title>
		<link>http://www.philhassey.com/blog/2008/05/27/meta-methods-python-vs-tinypy/#comment-4428</link>
		<dc:creator>Chris Swetenham</dc:creator>
		<pubDate>Thu, 12 Jun 2008 09:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.philhassey.com/blog/2008/05/27/meta-methods-python-vs-tinypy/#comment-4428</guid>
		<description>Although it is very elegant, a.x == a["x"] is actually one of the design decisions I like least in Lua, because it means that you can't have methods on an arbitrary indexable collection.

Metamethods also have a problem in Lua; they must be directly in the metatable of an object (__add for instance won't be looked up in the metatable.__index of the metatable, etc, but only in the metatable itself). You can either give instances a metatable whose __index is their class, or put the metamethods in the class and have the class as metatable, but either way there's no simple solution to inheriting metamethods in Lua.</description>
		<content:encoded><![CDATA[<p>Although it is very elegant, a.x == a["x"] is actually one of the design decisions I like least in Lua, because it means that you can&#8217;t have methods on an arbitrary indexable collection.</p>
<p>Metamethods also have a problem in Lua; they must be directly in the metatable of an object (__add for instance won&#8217;t be looked up in the metatable.__index of the metatable, etc, but only in the metatable itself). You can either give instances a metatable whose __index is their class, or put the metamethods in the class and have the class as metatable, but either way there&#8217;s no simple solution to inheriting metamethods in Lua.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
