Re: References to hash elements?

[email protected] (Luke Palmer)
Newsgroups perl.perl6.internals,perl.ponie.dev
Message-ID <[email protected]>
Arthur Bergman writes:
> 
> On 6 Jan 2004, at 17:05, Simon Cozens wrote:
> 
> >
> >I would have thought that a hash element would itself be a PMC rather
> >than an immediate value, so a reference to that should be treated just
> >like any other reference to a PMC.
> >
>
> But this does not hold true if the hash element is in fact conjured up 
> by a call to STORE

Ahh, touché.  Well, it wouldn't be so hard to write a Proxy pmc which is
constructed with an aggregate and a key, and delegates its assignments
and fetches to the aggregate itself. 

Luke

à
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.