From: Austin Ziegler Date: 2005-12-07T09:44:48+09:00 Subject: Re: Updating the original reference of a variable On 12/3/05, David Koontz wrote: > I'm working on a library similar to what DL does and I'm having a > problem with implementing variables that are to be passed as pointers. > I have all the C side code working, the problem is updating the original > variable with a modified value (for example you are calling a function > that takes two int* and sets their values based on some initilization). > My setup for passing the call along to the C function is to splat the > parameters into an array and pass the array and the function name into > the C layer which then makes the call into the loaded library. Ruby's variables don't work that way. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca