Вопрос

Like in some languages, you can add brackets to specify code. Is there something which I can do in Lua to split sections of my code up similar to the example below?

{
    //Code
}
Это было полезно?

Решение

Yes, you can create a scope with do ... end

do
   -- Code
end
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top