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

Re: Key stuff for aggregates

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
December 5, 2001 09:57
Subject:
Re: Key stuff for aggregates
Message ID:
5.1.0.14.2.20011205125436.021b4ad0@pop.sidhe.org
At 10:28 AM 12/5/2001 -0500, Jason Gloudon wrote:
>Using the aggregate's vtable is another way of getting the job done that 
>avoids all the extra reference PMCs. However, references will have to be 
>supported.

References are interesting. I'm currently thinking that:

*) PMCs should have a get_reference vtable entry
*) Accessing a reference should be just like accessing the referent. (i.e. 
you pass in the same key stuff and the reference vtable does the indirect 
lookup for you)
*) Some references will need to be 'smart', so if you do:

    $foo = \@bar[4];

and @bar's a packed array, $foo's actually a fancy ref that knows it points 
to @bar[4] and calls @bar's vtables when you access it. Or something like that.

					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