/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/python/naturalvar_runme.py
12 строк
129 B
Marcelo Matus
add the 'naturalvar' option/mode/feature, to allow member variables to be treated in a natural way, as the global ones. This mean use the const SWIGTYPE &(C++)/SWIGTYPE(C) typemaps instead of the plain SWIGTYPE * typemap for the set/get methods.
28 дек 2005, 00:48
28 дек 2005, 00:48
a275bbd
Код
Авторство
О чём код?
from naturalvar import * f = Foo() b = Bar() b.f = f cvar.s = "hello" b.s = "hello" if b.s != cvar.s: raise RuntimeError