Re: Delphi/Lua -- tutor again
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Delphi/Lua -- tutor again
 
- From: Jilani Khaldi <jilani.khaldi1@...>
 
- Date: 2006年6月30日 23:10:48 +0200
 
I didn't understand the relation between those two functions. Could 
you elaborate what you are trying to do or what are your needs?
Very simple. I have this lua function in a file named "test.lua"
function sum_tab(tab)
 local sum
 sum = 0
 for i = 1,table.getn(tab) do
 sum = sum + tab[i]
 end
 return sum
end
1. how to pass to this function an array of doubles;
2. how to read the returned value.
Thanks.
jk