mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-11-25 08:30:29 +00:00
15 lines
229 B
Plaintext
15 lines
229 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++) do
|
|
var x = Test("Hello world " .. i)
|
|
x.print()
|
|
end |