Raku / old-issue-tracker

Tickets from RT
https://github.com/Raku/old-issue-tracker/issues
2 stars 1 forks source link

does not remember dynamic variables ($*foo) #2190

Open p6rt opened 14 years ago

p6rt commented 14 years ago

Migrated from rt.perl.org#78068 (status was 'open')

Searchable as RT78068$

p6rt commented 14 years ago

From @ashgti

$ perl6

my $*a = 1; 1 say $*a; ===SORRY!=== Contextual $*a not found

Not sure why this is happening, I only see it happening in the REPL.

-- John Harrison

p6rt commented 12 years ago

From @coke

On Sun Sep 26 13​:45​:30 2010, ash_gti wrote​:

$ perl6

my $*a = 1; 1 say $*a; ===SORRY!=== Contextual $*a not found

Not sure why this is happening, I only see it happening in the REPL.

-- John Harrison

No longer dies​:

my $*a = 1; 1 say $*a Dynamic variable $*a not found

-- Will "Coke" Coleda

p6rt commented 12 years ago

The RT System itself - Status changed from 'new' to 'open'

p6rt commented 10 years ago

From mark@kli.org

 

 
 
 
 
  This seems to happen only with the REPL​:

 

  > my $*a;

  (Any)

  > $*a=10;

  Dynamic variable $*a not found

    in method \ at gen/parrot/CORE.setting​:12197

    in any  at gen/parrot/Metamodel.nqp​:2691

    in any find_method_fallback at gen/parrot/Metamodel.nqp​:2679

 

  > my $*a; $*a=10; say $*a;

  10

  >

 

 

  Note that the declaration is still there if I do it all on one line;   it just disappears between lines.

 

 

p6rt commented 9 years ago

From @usev6

Possibly this is related to the issues in ticket #​122914 (bindings and term definitions are "forgotten" in the REPL for subsequent lines).

p6rt commented 9 years ago

From @usev6

Possibly this is related to the issues in ticket #​122914 (bindings and term definitions are "forgotten" in the REPL for subsequent lines).

p6rt commented 8 years ago

From @smls

Changed title to reflect that it does not crash anymore, but still does not remember dynamic variables from one command to the next​:

  ➜ my $*a; $*a = 10;   5   ➜ $*a = 10;   Dynamic variable $*a not found   in block \ at \ line 1