libqtlua-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libqtlua-list] Iterating over a UserData object


From: Alexandre Becoulet
Subject: Re: [Libqtlua-list] Iterating over a UserData object
Date: Sat, 02 Apr 2016 16:04:32 +0200
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/24.5 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO)

On Fri, 01 Apr 2016 16:49:55 +0200,
Nenad Lakinski wrote:

Hello,

> However for some reason I can't use this userdata object for iteration. When 
> I try with ipairs/pairs I get an error message saying that the object
> must be a table. When I try with each/list it treats the UserData object as 
> empty.

You have to use each().

> I'm wondering if I'm missing something here. I went over all the other 
> UserData classes in the codebase (e.g. the proxies) and I can't see any
> difference between those and my class.

Please have a look to:

  examples/cpp/userdata/userobject2.cc

Does it help?

--
Alexandre



reply via email to

[Prev in Thread] Current Thread [Next in Thread]