/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/lua/multi_import_runme.lua
15 строк
412 B
Erez Geva
Remove Lua 5.0 and Lua 5.1 and Lua options
30 май 2026, 19:24
30 май 2026, 19:24
74ff929
Код
Авторство
О чём код?
-- note: need to import the base class module before the derived class -- this is because if the derived class is imported first it doesn't get the base class methods require("multi_import_b") require("multi_import_a") x = multi_import_b.XXX() assert(x:testx() == 0) y = multi_import_b.YYY() assert(y:testx() == 0) assert(y:testy() == 1) z = multi_import_a.ZZZ() assert(z:testx() == 0) assert(z:testz() == 2)