[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: tolua and namespaces
- From: Waldemar Celes <celes@...>
- Date: Tue, 25 Apr 2000 15:40:05 -0300
>
> Does ToLua handle C++ namespaces? If not, is there a workaround?
tolua handles "module", a concept similar to namespace.
if you have a .pkg file with:
module modulename
{
#define N
extern int var;
int func (...):
}
it is valid to write the following lua code:
print(modulename.N, modulename.var)
modulename.func(...)
>
> What about Templates?
there is no support for templates,
but you can map instances of templates.
$typedef MyList<double> NumberList;
class NumberList {
...
};
-- waldemar