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

lexical subroutines #429

Closed
p6rt opened this issue Nov 25, 2008 · 6 comments
Closed

lexical subroutines #429

p6rt opened this issue Nov 25, 2008 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 25, 2008

Migrated from rt.perl.org#60822 (status was 'resolved')

Searchable as RT60822$

@p6rt
Copy link
Author

p6rt commented Nov 25, 2008

From @moritz

Rakudo as of r33193 doesn't implement lexical subroutines; neither 'my
sub ...' is implemented nor does 'my $x = sub { ... }' work properly (a
test for the latter can be found in t/spec/integration/man-or-boy.t).

Moritz

@p6rt
Copy link
Author

p6rt commented Nov 26, 2008

From @jnthn

On Tue Nov 25 13​:19​:15 2008, moritz wrote​:

Rakudo as of r33193 doesn't implement lexical subroutines; neither 'my
sub ...' is implemented nor does 'my $x = sub { ... }' work properly (a
test for the latter can be found in t/spec/integration/man-or-boy.t).

All of​:

my $x = sub { ... }
my &x = sub { ... }
sub foo(&x) { x() }

Now work. Lexical subroutines are still todo.

Jonathan

@p6rt
Copy link
Author

p6rt commented Nov 26, 2008

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

@p6rt
Copy link
Author

p6rt commented Jan 20, 2009

From @moritz

On Wed Nov 26 11​:54​:02 2008, jnthn@​jnthn.net wrote​:

On Tue Nov 25 13​:19​:15 2008, moritz wrote​:

Rakudo as of r33193 doesn't implement lexical subroutines; neither 'my
sub ...' is implemented nor does 'my $x = sub { ... }' work properly (a
test for the latter can be found in t/spec/integration/man-or-boy.t).

That test depends on RT #​61982, but the lexical aspects surely work.

Lexical subroutines are still todo.

Status update​: 'my sub name { ... }' is parsed, but it's not lexical​:

$ ./perl6 -e '{ my sub f { say "in f" }; f() }; f(); { my sub f { say
"in second f" }; f() }; f()'
in f
in f
in f
in f

That should die on the second call to f().

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Apr 2, 2009

From @jnthn

On Tue Jan 20 11​:29​:48 2009, moritz wrote​:

Status update​: 'my sub name { ... }' is parsed, but it's not lexical​:

$ ./perl6 -e '{ my sub f { say "in f" }; f() }; f(); { my sub f { say
"in second f" }; f() }; f()'
in f
in f
in f
in f

That should die on the second call to f().

And as of git c40f3b9 it does so. Plus unfudged a couple of tests,
though there may well be others depending on lexical subs we can now
unfudge too.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Apr 2, 2009

@jnthn - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Apr 2, 2009
@p6rt p6rt added the Todo label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant