[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: is it possible to change a function's parameter's value from c++?
- From: "Magnus Lie Hetland" <mlh@...>
- Date: Sat, 7 Apr 2001 17:43:51 +0200
From: "Hakki Dogusan" <firstname.lastname@example.org>
> My problem is:
> in lua:
> x=afunction(avar) --afunction's implementation is in c++
> in c++:
> I want to change avar's value when afunction is called (like reference
> in c++).
> Don't know its global name.
> Is it possible?
How about sending the global name as a string, instead of using
x = afunction('avar')
Just a thought.
Magnus Lie Hetland http://www.hetland.org
"Reality is that which, when you stop believing in
it, doesn't go away." -- Philip K. Dick