[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua post Array to C/C++.
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 22 Mar 2011 07:38:11 -0300
> function SpilteArray(Array)
> --nCount = Array[0];
>
> return 1,2,3,4 //is ok
> /*
> how auto do it?
> for example, Array has 4 element.
> return Array[1], Array[2], Array[3], Array[4]
>
> */
> end
>
> TestArray={3,2,3,4}
> sum = Average(SpilteArray(TestArray)) //Average is C++ function.
I think your SpilteArray is the same as the unpack function.