I
Size: a a a
TT
ШТ
#!/usr/bin/env lua
t = {}
t.__index = t
t.__shl = function(self, item)
if not self.acc then
self.acc = item
else
self.acc = self.acc + item
end
return self
end
t.__tostring = function(self, item)
return self.acc
end
local q = setmetatable({}, t)
print(q << 1 << 2)
local c = q << 100 << 100
print(c)
--q << 2000 -- а так не получится??
AY
I
AY
AY
AY
TT
TT
TT