Re: return multiple return values
Markus Klotzbuecher <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Jul 25, 2010 at 10:40:30PM +0200, Markus Klotzbuecher wrote: > Hi Nigel, > > On Sat, Jul 24, 2010 at 01:11:28PM +0200, Nigel Atkinson wrote: > > > This is how I do multiple results... I'm not sure if this is in the docs > > or where I picked this up from. This is with version 0.9 of Luabind, > > with its rather cool replacement for the "raw" policy. Personally I > > prefer the first function, as it is slightly more clear about the order > > the values are returned. > ... > > Thanks a lot! I completely forgot I could push data on the stack > directly. But I have to return non-primitive objects (bound with > luabind) too. Is there an equivalent of 'lua_pushluabindobject' ? I just found the answer to my own question: there is in form of the luabind::object::push() method. Problem solved, thanks! Markus ------------------------------------------------------------------------------ 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