lua-users home
lua-l archive

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


Change your script to:

    local x,y,z = vec:get()

and change the return statement of your method back to:

    return 3; // return three coordinates

> Is it possible to write
> to the values of a function(x,y,z)

If you mean as some sort of reference type then, no, you cannot.  Parameters
behave just like local variables.  However, if you pass an object (table,
function, userdata) then you can change that object (because object values
are actually references.)