lua-users home
lua-l archive

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


>I seem to have a problem doing:
>
>object:methodA(otherObject:methodB())
>
>although it works fine if I do:
>
>local temp = otherObject:methodB()
>object:methodA(temp)
>
>Is this a known limitation in Lua, a bug, or am I doing
>something wrong?


Oops, I meant to say:

   object:methodA():methodB()

doesn't work, but:

   local temp = otherObject:methodB()
   temp:methodA()

Does.

Steve