lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


22.10.2020 13:24, Marcus Mason пишет:
setmetatable(_ENV, {__index = function(t, k) if k == '_PROMPT' then t._N = (t._N or 0) + 1; return t._N .. ' >' end end})

Thank you very much, it really works. Lua's is amazing in hiw deeply it can be customized.


Alexander Mashin