Я хочу сделать класс так:Moonscript статические поля
class Example
field: false --some field shared for all instances of the class
init: (using field) ->
field = true --want to change value of the static field above
Но в Lua я получил:
<...>
field = false,
init = function()
local field = true //Different scopes of variable field
end
<...>
В документации я прочитал, что записи с помощью помогает справиться с ней