Re: how return nil with luabind::object ?

Ilia Trendafilov <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
Hi,

I don't have luabind right now and cannot verify my answer, but I'd
expect the default constructor of luabind::object to set the object to
nil. Sorry for the spam if that's obviously wrong.

Ilia

On Thu, Jun 25, 2009 at 4:53 PM, Markus
Klotzbuecher<[email protected]> wrote:
> Dear List,
>
> I can't figure out a clean way to return lua 'nil' in a
> luabind::object from a function. I guess I could pushnil onto the
> stack, create the object with from_stack and then pop nil again, but
> there must be a better way...
>
> Any ideas?
>
> Thanks!
> Markus
>
> ------------------------------------------------------------------------------
> _______________________________________________
> luabind-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/luabind-user
>

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.