RE: variable referencing
- Posted by Bernie Ryan <xotron at localnet.com> Aug 10, 2001
- 415 views
Chris Bensler wrote: > Is there a way this can be accomodated? > > I'm not sure if that's the correct terminology or not, but I mean > passing variables by name to a routine rather than by value. IE for c > routines which use variable references for arguments.. (&var) Chris: If you are talking about "C" the &Var means the address of the variable. So then you have to do this. atom Var Var = allocate(4) poke4(Var,somevalue) Then if you pass Var what is ever poked into its location will be available to the routine that is receiving the parameter. Bernie