Skip to content
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

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

Open
p6rt opened this issue Sep 26, 2010 · 7 comments
Open

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

p6rt opened this issue Sep 26, 2010 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Sep 26, 2010

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

Searchable as RT78068$

@p6rt
Copy link
Author

p6rt commented Sep 26, 2010

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
Copy link
Author

p6rt commented Oct 7, 2011

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
Copy link
Author

p6rt commented Oct 7, 2011

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

@p6rt
Copy link
Author

p6rt commented Jan 14, 2014

From mark@kli.org

 

 
 
 
 
  This seems to happen only with the REPL​:

 

  > my $*a;

  (Any)

  > $*a=10;

  Dynamic variable $*a not found

    in method <anon> 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
Copy link
Author

p6rt commented Oct 13, 2014

From @usev6

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

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 13, 2014

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
Copy link
Author

p6rt commented May 6, 2016

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 <unit> at <unknown file> line 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant