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
Some forms of "dynamic symbol lookup" syntax cause compiler error in Rakudo #3698
Comments
From @smlsThe behavior is different for the various syntax forms for looking up symbols dynamically: A) The [sigil at the start; null pseudo-package; name in curly or angle brackets] form throws an "Index out of bounds" error: $ perl6-m -e 'say defined $::{"foo"}' B) The [sigil at the start; *named* pseudo-package; name in curly or angle brackets] form fails with "Undeclared routine: &MY" or similar if the sigil is &, but works fine for other sigils: say defined &MY::{"foo"}' C) The remaining forms seem to work fine. In particular all the ones that use parens instead of curly/angle brackets to look up the name: $ perl6 -e 'say .defined for &::("foo"), &MY::("foo"), $MY::("foo") As well as the ones that treat the sigil as part of the name: $ perl6 -e 'say .defined for ::<$foo>, ::<&foo>, MY::<&foo>' |
From @AlexDanielAs of today (2017.11,HEAD(e5b660e)) it gives this: ===SORRY!=== Error while compiling -e There was another ticket that had exactly the same change of an error message, perhaps worth searching for it (ping me if you really want to find it). On 2015-02-22 14:03:46, smls75@gmail.com wrote:
|
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#123903 (status was 'open')
Searchable as RT123903$
The text was updated successfully, but these errors were encountered: