1. RE: variable referencing

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

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu