Use more conventional syntax for constructors.

They are now invoked like "new Foo".
Also, superclass constructors are now much less semantically
and syntactically weird. Since the instance is created before
any constructor is called, there's no point in time where the
instance isn't there.
This commit is contained in:
Bob Nystrom
2013-12-19 07:02:27 -08:00
parent b880b17db9
commit 4d67f2270a
30 changed files with 171 additions and 190 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class Bar is Foo {
}
}
var bar = Bar.new
var bar = new Bar
bar.foo("foo 1", "foo 2")
bar.bar("bar 1", "bar 2")