new P2, .PerlString
can I0, P2, "_set_string_native" # = 1
set S0, "_set_string_native"
set P5, P2
set S5, "hello"
callmeth
# or find_method, invoke
Not that I would recommend that but I can imagine, that HLL with "all is
an object philosophy" would like to call all methods like above.
leo
> As ParrotObjects and plain PMCs seems to get more and more unified, the
> question arises, if all PMC vtables should be invocable via the standard
> method invocation for real objects:
Sort of, yes. We're going to define a name for each vtable entry (I'm in
the middle of this now :) for the method to call for that particular
vtable entry if the vtable function is invoked and its supposed to
delegate to parrot code.
I can see ways of making it all methods and dodging the vtable entirely,
but they seem to badly pessimize the default case, so... blech. :)
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
d...@sidhe.org have teddy bears and even
teddy bears get drunk