On Mon, Aug 27, 2012 at 1:01 AM, Andrew Whitworth <[email protected]> wrote: > vtable != method. You can't call get_pointer from PIR. Pointers and > other dangerous nonsense is not used directly in the "protected" > environment. > > Testing this is probably best done at the C level, or with some kind > of NCI. You can't directly test get_pointer from PIR. > > On visual inspection your implementation of it looks correct, getting > a test to prove it is the hardest part.
And you would need to "pin" the pointer for the gc, not to move it. If we would use a moving or copying gc somewhen. Same problem as with ffi callbacks. -- Reini Urban http://cpanel.net/ http://www.perl-compiler.org/ _______________________________________________ http://lists.parrot.org/mailman/listinfo/parrot-dev
