[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Passing values back through function arguments
- From: Reuben Thomas <rrt@...>
- Date: Tue, 5 Feb 2002 12:07:48 +0000 (GMT)
> 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).
http://sc3d.org/rrt/ | Quidquid latine dictum sit, altum viditur (Anon)