Re: References to hash elements?
[email protected] (Simon Cozens)
| Newsgroups | perl.perl6.internals,perl.ponie.dev |
|---|---|
| Message-ID | <[email protected]> |
Jeff Clites: > But here what I'm copying is the _contents_ of the hash slot. True, but irrelevant. :) > And here I'm not making a copy, but also the thing I'm taking a > reference to is not the same thing I copied above. Here, it's a > reference to a hash slot. No, it isn't. It's a reference to a PMC. The fact that that PMC happens to be pointed to by a hash key is incidental. It's still just another PMC. No special case at all. -- emacs: Terminal type "emacs" is not powerful enough to run Emacs.