Cosmo/examples/stress.cosmo
2020-11-17 15:13:51 -06:00

15 lines
231 B
Plaintext

class Test
function __init(self, x)
self.x = x
end
function print(self)
print(self.x)
end
end
-- stressing the GC
for (var i = 0; ; i=i+1) do
var x = Test("Hello world " .. i)
x.print()
end