Re: tostring
Ken Smith <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jul 8, 2010 at 10:37 AM, Nicolas Goles <[email protected]> wrote: > I think self is a cocoa keyword. Try to use " this" instead Thanks for your suggestion. This is a .cpp file compiled with g++ as C++ (without -x objective-*) so self is not a keyword for this compilation unit. I've also tried not using the using directive and prefixing all of Luabind's symbols with its namespace. (This is the way I prefer to program anyway.) luabind::open(state_); luabind::module(state_) [ luabind::class_<test_t>("test_t") .def(luabind::constructor<const std::string&>()) .def(luabind::tostring(luabind::self)) ]; This yields the same error. Ken ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first