/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/lua/newobject2_runme.lua
15 строк
372 B
Erez Geva
Remove Lua 5.0 and Lua 5.1 and Lua options
30 май 2026, 19:24
30 май 2026, 19:24
74ff929
Код
Авторство
О чём код?
require("newobject2") foo1 = newobject2.makeFoo() -- lua doesn't yet support static fns properly assert(newobject2.fooCount() == 1) -- lua doesn't yet support static fns properly foo2 = newobject2.makeFoo() assert(newobject2.fooCount() == 2) foo1 = nil collectgarbage() assert(newobject2.fooCount() == 1) foo2 = nil collectgarbage() assert(newobject2.fooCount() == 0)