Could you please clarify which the "working case" is in your opinion?
It shouldn't matter whether your scalar was created by «my $x» or by «123». The literal «123» should return a modifiable value. The code in \ is specifically there to emulate that without the cost of creating a new scalar every time «123» is evaluated.
I agree with tye that there are good arguments for both perspectives.
I can't find these arguments. Could you give me a link?
In reply to Re^9: ref to read-only alias ... why? (notabug)
by ikegami
in thread ref to read-only alias ... why?
by dk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |