fixed newslot in table.cpp, that would return false, even though the slot was correct...
[vox.git] / examples / prototypes.vx
blobddb647cb07cf43a52317c2627e27389a62f40b60
2 class Foo
4     name = null
5     constructor(_name)
6     {
7         this.name = _name
8     }
11 Foo.print_name := function()
13     println("this.name = ", this.name)
16 Foo.set_name := function(newname)
18     this.name = newname
21 f := Foo("world")
22 f.print_name()
23 f.set_name("Buddha")
24 f.print_name()