Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^21: ref to read-only alias ... why? (notabug)by ikegami (Patriarch) |
on Jan 12, 2012 at 23:11 UTC ( [id://947666]=note: print w/replies, xml ) | Need Help?? |
There are comments on RT#3105 that were posted on p5p (but off-ticket) about this. Also, COW came up again recently on p5p. It's a publicly readable and searchable mailing list. I don't have time to search right now (Took me a couple days just to get around to writing this!) I'll try when I can.
Just like him, I agree the inconsistency is a bug. I only have a problem with your fix. I have already explained how I think your fix only affects the case that is working correctly.
Considering there's only a couple of handful of them in total, and how few speak on topics they aren't working on...
To my knowledge, the docs are silent on whether literals should return read-only values or modifiable values. Which is why I provided code (contrary to what you said).
In Section
Seekers of Perl Wisdom
|
|