<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Metatable on PlumePHP</title><link>https://plumephp.com/tags/metatable/</link><description>Recent content in Metatable on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sun, 15 Jun 2025 10:00:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/metatable/index.xml" rel="self" type="application/rss+xml"/><item><title>Lua元表和元方法详解</title><link>https://plumephp.com/lua-metatables-and-metamethods/</link><pubDate>Sun, 15 Jun 2025 10:00:00 +0800</pubDate><guid>https://plumephp.com/lua-metatables-and-metamethods/</guid><description>&lt;h2 id="什么是元表"&gt;什么是元表&lt;/h2&gt;
&lt;p&gt;元表（metatable）是 Lua 中一种强大的机制，允许你改变表在运行时的行为。每个表都可以关联一个元表，当对该表执行特定操作（如算术运算、索引访问等）时，Lua 会检查元表中是否定义了对应的元方法（metamethod），如果存在则调用它。&lt;/p&gt;</description></item></channel></rss>