develooper Front page | perl.perl6.internals | Postings from September 2001

Re: PDD 6: Parrot Assembly Language

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
September 10, 2001 06:29
Subject:
Re: PDD 6: Parrot Assembly Language
Message ID:
5.1.0.14.2.20010910084128.02873398@pop.sidhe.org
At 10:09 PM 9/9/2001 +0100, Simon Cozens wrote:
>On Fri, Sep 07, 2001 at 04:30:56PM -0400, Dan Sugalski wrote:
> > =item find_method Px, Py, tz
>
>Using what kind of dispatch mechanism? Or is that what the t is for?

That bit needs to change because of some of the stuff I've been digging 
into. Basically dispatch is handled by the object itself. When you do:

   $foo->bar(1,2,3);

under the hood we look up the method call function in $foo's vtable and 
tell it to go handle things. That way people can install per-class (or 
per-object, if they must) dispatch code.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About