Cosmo/examples/stress.cosmo

15 lines
229 B
Plaintext
Raw Normal View History

2020-12-05 23:58:56 +00:00
proto Test
2020-11-17 21:07:56 +00:00
function __init(self, x)
self.x = x
end
function print(self)
print(self.x)
end
end
// stressing the GC
for (var i = 0; ; i++) do
2020-11-17 21:07:56 +00:00
var x = Test("Hello world " .. i)
x:print()
2020-11-17 21:07:56 +00:00
end