go top

metatable

  • n. 元表:在计算机编程中,元表是一种表(通常是哈希表),用于存储另一个表的元数据。它们通常用于实现面向对象编程的特性,如继承和多态。

英英释义

Metatable

  • abstract: A metatable is the section of a database or other data holding structure that is designated to hold data that will act as source code or metadata. In most cases, specific software has been written to read the data from the metatables and perform different actions depending on the data it finds.

以上来源于: WordNet

双语例句

  • The functions setmetatable() and getmetatable() modify and query an object's metatable, respectively.

    函数 setmetatable() getmetatable() 分别对对象的元表进行修改查询

    youdao

  • The keys of the metatable are called events; the values (in other words, the functions) are called metamethods.

    元表称为事件;值(而言之就是函数)称为方法。

    youdao

  • The function String() takes a string, string, wraps it in a table ({value = s or ''}), and assigns the metatable mt to the table.

    函数 String() 接收字符串 string,将其封装到一个({value = s or ''})中,元表 mt 值给这个表。

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定