我想像这样上课:
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
<...>
在文档中,我读到使用有助于处理它的写作