2020-11-17 21:07:56 +00:00
|
|
|
class Test
|
|
|
|
function __init(self, x)
|
|
|
|
self.x = x
|
|
|
|
end
|
|
|
|
|
|
|
|
function print(self)
|
|
|
|
print(self.x)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-11-19 20:41:21 +00:00
|
|
|
// 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()
|
|
|
|
end
|