Re: pass by reference
- Posted by Irv Mullins <irvm at ellijay.com> Feb 12, 2002
- 612 views
On Tuesday 12 February 2002 01:48 pm, Bernie Ryan wrote: > > atom addr_of_x > addr_of_x = allocate(4) > > > foo(var integer x) > > x = 99 > > end > > procedure foo(atom addr_of_x) > poke4(addr_of_x,99) > end procedure > > > foo(x) > > ? x => 99 > > foo(addr_of_x) > ? peek4u(addr_of_x) => 99 So now we have Euphoria with pointers. The worst of both worlds. I'm beginning to like C more and more. Regards, Irv