lua-users home
lua-l archive

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

> Suppose I wanted to pass a value back from a C function through arguments
> that were passed in.

You can't with strings or numbers: they're always passed by value. Two
ways to get around this would be a) to pass the name of a (global)
variable as one of the arguments, and b) to change the value of a table
argument (since tables are passed by reference).

-- | Quidquid latine dictum sit, altum viditur (Anon)