Adding get_pointer VTABLEs to the Integer PMC
Andrew Whitworth
wknight8111 at gmail.com
Sun Aug 26 23:01:21 UTC 2012
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.
--Andrew Whitworth
On Sun, Aug 26, 2012 at 12:29 PM, Jonathan "Duke" Leto
<jonathan at leto.net> wrote:
> Howdy,
>
> I am trying to add a get_pointer VTABLE to the Integer PMC here:
>
> https://github.com/parrot/parrot/compare/leto/get_pointer
>
> in relation to Github issue #819:
>
> https://github.com/parrot/parrot/issues/819
>
> But I get this:
>
> $ prove -lr t/pmc/integer.t
> t/pmc/integer.t .. 1/142 Method 'get_pointer' not found for invocant
> of class 'Integer'
> current instr.: 'test_get_pointer' pc 500 (t/pmc/integer.t:145)
> called from Sub 'test' pc 272 (t/pmc/integer.t:53)
> t/pmc/integer.t .. Dubious, test returned 1 (wstat 256, 0x100)
> Failed 30/142 subtests
>
> Can somebody point me out of this twisty maze?
>
> Duke
>
> --
> Jonathan "Duke" Leto <jonathan at leto.net>
> Leto Labs LLC http://labs.leto.net
> 209.691.DUKE http://dukeleto.pl
> _______________________________________________
> http://lists.parrot.org/mailman/listinfo/parrot-dev
More information about the parrot-dev
mailing list