From: Jamis Buck Date: 2004-10-29T06:22:09+09:00 Subject: Re: Dereferencing PtrData in Ruby/DL Carl Youngblood wrote: > Thanks Jamis. Now I have another problem. How do I get a pointer to > a pointer? Let's say I've just allocated a pointer with: > > mypointer = DL.malloc(DL.sizeof('P')) > > How do I get a pointer to that pointer? mypointer.to_p doesn't seem to work. Try "mypointer.ptr". Then "mypointer.ref" to dereference the pointer. (Did I misunderstand your original question? Because my answer to your first question actually answers this one, too, unless I'm completely confused, which is likely...) - Jamis -- Jamis Buck jgb3@email.byu.edu http://www.jamisbuck.org/jamis