lua-users home
lua-l archive

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



It means you tried to index a userdata, in your example you tried to
setfield on a userdata, you can't do that by default. In order for that to
work the userdata needs to have an __index metamethod.

    -Etan
it does have a __index metamethod thats how I can call methods
on the userdata, do you mean I need an __index method?
if so what should it receive as params and what should it return?

Thanks
C


--
Disclaimer:
By sending an email to ANY of my addresses you are agreeing that:

  1. I am by definition, "the intended recipient"

  2. All information in the email is mine to do with as I see fit and
make such financial profit, political mileage, or good joke as it lends
itself to. In particular, I may quote it where I please.

  3. I may take the contents as representing the views of your company.

  4. This overrides any disclaimer or statement of confidentiality that
may be included on your message.