Modules As Objects In Newspeak

Gilad Bracha, Peter Von Der Ahe,Vassili Bykov,Yaron Kashai, William Maddox,Eliot Miranda

ECOOP'10 Proceedings of the 24th European conference on Object-oriented programming(2010)

引用 121|浏览0
暂无评分
摘要
We describe support for modularity in Newspeak, a programming language descended from Smalltalk [33] and Self [69]. Like Self, all computation even an object's own access to its internal structure is performed by invoking methods on objects. However, like Smalltalk, Newspeak is class-based. Classes can be nested arbitrarily, as in Beta [44]. Since all names denote method invocations, all classes are virtual; in particular, superclasses are virtual, so all classes act as mixins. Unlike its predecessors, there is no static state in Newspeak, nor is there a global namespace. Modularity in Newspeak is based exclusively on class nesting. There are no separate modularity constructs such as packages. Top level classes act as module definitions, which are independent, immutable, self-contained parametric namespaces. They can be instantiated into modules which may be stateful and mutually recursive.
更多
查看译文
关键词
Method Invocation, Instance Initializer, Virtual Classis, Class Declaration, Recursive Module
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要