Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Q: can, callmeth ...

9 views
Skip to first unread message

Leopold Toetsch

unread,
Oct 22, 2003, 9:42:12 AM10/22/03
to P6I
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:

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

Dan Sugalski

unread,
Oct 22, 2003, 10:51:36 AM10/22/03
to Leopold Toetsch, P6I
On Wed, 22 Oct 2003, Leopold Toetsch wrote:

> 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


0 new messages