Menu

Changed Inheritance Syntax

I have never been a fan of changing syntax enough to break backwards compatibility, but I did not like the old syntax for inheritance. Instead of having an inherit keyword used inside a class declaration, Fermion will begin using the extends keyword in the declaration much like Java, for example: "Class myDerived extends myBase." The new syntax has already been added into the SVN for testing.

I am working on changing how the interpreter handles the different types to make the system more flexible. I will also be adding in references for parameters. The new system will allow classes to be used with arrays, and will allow multi-dimensional arrays by using an array contained inside of an array.

Posted by Matthew Hall 2009-03-24

Log in to post a comment.