Closed maxrt101 closed 1 year ago
Prototype Inheritance
Will have base class as a field of ClassInstance
If multiple inheritance will be a thing, a list of base classes will be stored
Implementation: https://github.com/maxrt101/ff/tree/issue-19-class-support
d6c3a43 - rev1
Done:
class
and new
constructs (parsing and compiling).Todo:
Merged
New types needed:
ClassType
-Class
ClassInstanceType
-ClassInstance
class File
will be aClass
ClassInstance
will store aRef
toClass
New keywords needed:
static
pub
Example: