mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-11-05 08:10:05 +00:00
18 lines
244 B
Plaintext
18 lines
244 B
Plaintext
|
class Test
|
||
|
function __init(self, x)
|
||
|
self.x = x
|
||
|
end
|
||
|
|
||
|
function print(self)
|
||
|
print(self.x)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
-- stressing the GC
|
||
|
local i = 0
|
||
|
while true do
|
||
|
var x = Test("Hello world " .. i)
|
||
|
x.print()
|
||
|
|
||
|
i = i + 1
|
||
|
end
|