是否存在没有元类的 Smalltalk?
至少在 Squeak 和 Pharo 中,每个类都有其相应的元类,它保存该类的类方法。每个 Smalltalk 都是这样吗?
At least in Squeak and Pharo, each class comes with its corresponding meta-class, that holds the class-methods of the class. Is this in every Smalltalk the case?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据 关于 Smalltalk 的维基百科文章,元类是在 Smalltalk-80 中引入的,我认为所有版本现在普遍使用确实有它们。
早期版本 Smalltalk-71、Smalltalk-72 和 Smalltalk-76 没有它们。
According to the Wikipedia article on Smalltalk, metaclasses were introduced in Smalltalk-80, and I think all versions now in common use do have them.
Earlier versions, Smalltalk-71, Smalltalk-72 and Smalltalk-76 did not have them.
您可以查看自语。它是 Smalltalk 的基于原型的后代。
You can check out a Self language. It is a prototype-based descendant of Smalltalk.