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
assignment to native-typed variable fails in repl #4861
Comments
From zefram@fysh.orgAt the REPL top level, post-init assignment to a native-typed variable
But it works fine in other situations:
$ perl6 -e 'my int $i; $i = 3; say $i' -zefram |
From @LLFournYou can gold this down to: perl6 -e 'my int $a = 3; EVAL q|$a = 4|' #!>Cannot find method 'qast' On Mon, Dec 14, 2015 at 7:26 AM Zefram <perl6-bugs-followup@perl.org> wrote:
|
The RT System itself - Status changed from 'new' to 'open' |
From @hoelzroLooks related to RT #127933. On 2015-12-13 18:11:39, lloyd.fourn@gmail.com wrote:
|
From @hoelzroI dug into this bug for a bit today, and I think I discovered the underlying issue. Let's take a look at the
When we run the EVAL, the compiler seems to have some knowledge of $i at the Rakudo level - it knows enough NQP's MAST compiler (in src/vm/moar/QAST/QASTOperationsMAST.nqp) eventually gets to a routine called Now, EVAL passes in a context for the new chunk code to use, but this context isn't available until There's a bandaid solution that treats the symptom but not the cause - we can alter the while loop A better solution that treats the underlying cause would be to have the MAST compiler construct a top-level On 2016-09-16 19:53:59, rob@hoelz.ro wrote:
|
Migrated from rt.perl.org#126900 (status was 'open')
Searchable as RT126900$
The text was updated successfully, but these errors were encountered: