-
Notifications
You must be signed in to change notification settings - Fork 1
function parameters aren't readonly *aliases* #2877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From @nwc10Well, I don't think that I'm doing anything stupid here, but it's always Surely if function parameters are readonly *aliases* to the argument $ cat ../test/aliases.pl my $global = "Perl Rules"; sub baz { sub foo ($bar) { foo($global); say "But at the end: $global"; But at the end: Perl 6 Rules I would have expected the second line to be "Perl 6 Rules", because the $ ./perl6 -v Yes, there is an ulterior motive to this bug report. I'm not confident that Nicholas Clark |
From @jnthnOn Mon Sep 17 09:34:45 2012, nicholas wrote:
I'm not sure the point is optimisability so much as it is stopping As for Rakudo's current semantics, it works by taking the argument from /jnthn |
The RT System itself - Status changed from 'new' to 'open' |
From @nwc10On Mon, Sep 17, 2012 at 10:14:28AM -0700, jnthn@jnthn.net via RT wrote:
Yes, this was what I was wondering. In which case, it would mean that a
But I'm not sure what point I'm trying to prove. I think the initial problem is "Rakudo and the spec disagree. That means that The backstory: It (obviously, or maybe not so obviously) started with the discussions But in Perl 5 they don't look to be. (There are no vtables to swap out to But it got me thinking - surely Perl 6 has to do this too? With gradual So it comes back to "Rakudo and the spec disagree". Rakudo seems to actually But if this is a much better strategy, who is right long term? The spec? But it also feels very wrong that the spec says one thing, and the So I guess my question is really a request to step back, and answer Nicholas Clark |
From @jnthnOn Mon Sep 17 09:34:45 2012, nicholas wrote:
Indeed, and we didn't implement it as readonly aliases, and if we did go with that behavior then it would enormously hinder things like spesh and invokedynamic in their optimization work. So, now the design docs are in line with what's actually been implemented: |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#114946 (status was 'resolved')
Searchable as RT114946$
The text was updated successfully, but these errors were encountered: