lua-users home
lua-l archive

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


Hi,

----- Original Message -----
From: "Mark Stroetzel Glasberg" <mark@tecgraf.puc-rio.br>
To: <dogusanh@tr.net>
Sent: Friday, April 06, 2001 9:03 PM
Subject: Re: is it possible to change a function's parameter's value from
c++?


>
> Hakki Dogusan wrote:
> > 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?
>
> What about doing:
>
> avar=3
> x,avar=afunction(avar)
>
> Regards,
> Mark
>
> --
> |\/|ark Stroetzel Glasberg
> mark@tecgraf.puc-rio.br
>
> Computer Engineer
>
> Tecgraf/PUC-Rio
> Rua Marques de Sao Vicente, 225 - Predio ITS
> Gavea - Rio de Janeiro - RJ cep. 22453-900
> Fone: 21 512-5984
> Fax:  21 259-2232
>

I'm already did this way, but (you know) just curious for other solutions
:-))
Thanks.

--
Best regards,
Hakki Dogusan
dogusanh@tr.net
http://home.tr.net/dogusanh