请输入您要查询的英文单词:

 

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

    ?元表

    该影射源会针对每个类,创建一个元表(MetaTable),用来描述表与实体之间的影射。在创建这个元表的时候,通过反射,检查 DataContext 是否有对应实体类的增删改的扩展方法,如果有...

  • 2

    ?是否有

    ... Metatable,并且检查 Metatable是否有 __add域。如果找到则调用这个 ...

  • 双语例句
  • 1
    The functions setmetatable() and getmetatable() modify and query an object's metatable, respectively.
    函数 setmetatable() 和 getmetatable() 分别对对象的元表进行修改和查询。
  • 2
    The keys of the metatable are called events; the values (in other words, the functions) are called metamethods.
    元表的键值称为事件;值(换而言之就是函数)称为元方法。
  • 3
    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 赋值给这个表。
  • 词源
1

metatable:

meta- +? table

FROM: wiktionary
随便看

 

英汉双解词典包含3185865条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2022 Newdu.com All Rights Reserved
更新时间:2025/3/28 6:45:46