[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: is it possible to change a function's parameter's value from c++?
- From: "Hakki Dogusan" <dogusanh@...>
- Date: Sat, 7 Apr 2001 23:17:24 +0300
Hi,
----- Original Message -----
From: "Magnus Lie Hetland" <mlh@idi.ntnu.no>
To: "Multiple recipients of list" <lua-l@tecgraf.puc-rio.br>
Sent: Saturday, April 07, 2001 6:43 PM
Subject: Re: is it possible to change a function's parameter's value from
c++?
> From: "Hakki Dogusan" <dogusanh@tr.net>
> >
> > My problem is:
> >
> > in lua:
> > avar=3
> > x=afunction(avar) --afunction's implementation is in c++
> >
> > in c++:
> > I want to change avar's value when afunction is called (like reference
> param
> > in c++).
> > Don't know its global name.
> > Is it possible?
>
> How about sending the global name as a string, instead of using
> the variable?
>
> I.e:
>
> avar=3
> 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
>
>
Thanks for the trick.
--
Best regards,
Hakki Dogusan
dogusanh@tr.net
http://home.tr.net/dogusanh