Closed KCreate closed 7 years ago
This builds on top of this issue. Syntax for composing different classes together to form a new one is as follows:
class Person {}; class SuperPowers {}; class TheFlash(Person, SuperPowers) {};
This just executes Person, SuperPower and TheFlash (in this order) in a shared stack.
To extend a class you write
class Person {}; class Person(Person) {};
Note that you have to be in the same scope as where the class was defined, as class definitions are block-scoped.
Closed via #88
This builds on top of this issue. Syntax for composing different classes together to form a new one is as follows:
This just executes Person, SuperPower and TheFlash (in this order) in a shared stack.
To extend a class you write
Note that you have to be in the same scope as where the class was defined, as class definitions are block-scoped.