Cosmo/examples/stress.cosmo
2023-02-09 12:32:48 -06:00

15 lines
239 B
Plaintext

proto 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 < 100000; i++) do
var x = Test("Hello world " .. i)
x:print()
end