lua-users home
lua-l archive

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



Not quite sure what you're intention are but..

How about returning a table having such values, this would allow you (from the Lua side) to travers the table and react on each setting individually. That is based on that I guessed your intention right.

--test.lua
return {
    x=3,
    y=4,
    pos=35 }

-- caller.lua
for k,v in pairs( dofile(test.lua) ) do
    print( k,v )
end


-ak

mark joselli kirjoitti 16.5.2005 kello 17.41:

i have this on a lua file
--test.lua
x=3
y=4
pos=35

and im using the C API to get this values from the lua file
when the program is runing those valoues get thanged
and i wanto to save those changes in the lua file
is there a way for doing this using lua????
thanks

_________________________________________________________________
MSN Messenger: converse online com seus amigos . http:// messenger.msn.com.br