mirror of
https://github.com/CPunch/Cosmo.git
synced 2026-01-02 22:00:17 +00:00
minor refactoring, added inc and dec operators
This commit is contained in:
@@ -8,8 +8,8 @@ class Test
|
||||
end
|
||||
end
|
||||
|
||||
-- stressing the GC
|
||||
for (var i = 0; ; i=i+1) do
|
||||
// stressing the GC
|
||||
for (var i = 0; ; i++) do
|
||||
var x = Test("Hello world " .. i)
|
||||
x.print()
|
||||
end
|
||||
@@ -1,7 +1,7 @@
|
||||
-- crafts a dummy class
|
||||
// crafts a dummy class
|
||||
class test end
|
||||
|
||||
-- instance of test
|
||||
// instance of test
|
||||
var obj = test()
|
||||
|
||||
test.__index = function(self, key)
|
||||
@@ -11,4 +11,4 @@ test.__index = function(self, key)
|
||||
end
|
||||
end
|
||||
|
||||
print(obj["lol"]) -- should print 9001?
|
||||
print(obj["lol"]) // should print 9001?
|
||||
Reference in New Issue
Block a user