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

Re: An overview of the Parrot interpreter

Thread Previous | Thread Next
From:
Piers Cawley
Date:
September 5, 2001 14:45
Subject:
Re: An overview of the Parrot interpreter
Message ID:
m3wv3d71qb.fsf@iest.bofh.org.uk
Dan Sugalski <dan@sidhe.org> writes:

> At 10:32 AM 9/4/2001 +0100, Piers Cawley wrote:
> > > * Methods get their parameters passed in as a list in PMC register 0,
> > > * unless we can unambiguously figure out their prototype at
> > > * compilation time
> >
> >Will the subroutine know how it was called? (ie: Through method
> >dispatch or through straightforward symbol table lookup. I'm really
> >hoping the answer to this is 'yes'.) Or will methods and subroutines
> >be distinct now?
> 
> I suppose we could, and I don't know.
> 
> Can you see any use of a sub knowing it was called via a method call?

Yes. Especially if that comes with knowledge of what symbol table the
sub was found in. Then I could write HYPER.pm, a runtime equivalent of
SUPER::, and I believe that Damian's very lovely NEXT.pm could become 
substantially more reliable too.

-- 
Piers Cawley
www.iterative-software.com


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