Cosmo/examples/stress.cosmo

15 lines
231 B
Plaintext

proto Test
func __init(self, x)
self.x = x
end
func print(self)
print(self.x)
end
end
// stressing the GC
for (let i = 0; i < 100000; i++) do
let x = Test("Hello world " .. i)
x:print()
end