lua-users home
lua-l archive

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


I do not know whether is normal, but it happens.
It is not just your C++ function.

> print(gcinfo())
21      29
> print(gcinfo(),1)
22      1
> print(1,gcinfo())
1       22      29

regards
DB

Gil Damoiseaux <gil@neurotv.be> wrote:

>Hi,
>
>	I'm using Lua since some months now, and I've come across a problem today
>that I've never noticed. I have a C++ function that returns 3 integers, let
>says a GetPosition() that return x,y and z.
>
>when I do:
>	print(GetPosition())
>I have :
>	12   34   55
>
>But when I do
>	print(GetPosition(),99)
>I have:
>	12   99
>
>	Is this really normal? Or did I miss something?
>
>Thanks in advance,
>
>Gil Damoiseaux, ITV engineer, www.neurotv.be