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

my @x = (1); @x ||= (); say ~@x; dies with max recursion depth exceeded. #2426

Closed
p6rt opened this issue May 9, 2011 · 7 comments
Closed

Comments

@p6rt
Copy link

p6rt commented May 9, 2011

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

Searchable as RT90158$

@p6rt
Copy link
Author

p6rt commented May 9, 2011

From @ronaldxs

See on IRC http://irclog.perlgeek.de/perl6/2011-05-08#i_3697897

but for convenience I will include essential results below​:

21​:43 PhatEddy rakudo​: my @​a = (1); @​a ||= (); say @​a
21​:43 p6eval rakudo 705435​: ( no output )
21​:44 PhatEddy rakudo​: my @​a = (1); @​a ||= (); say ~@​a
21​:44 p6eval rakudo 705435​: OUTPUT«(timeout)»
21​:52 PhatEddy rakudo​: my @​a = (); say @​a.perl; @​a ||= (); say @​a.perl
21​:52 p6eval rakudo 705435​: OUTPUT«[]␤[()]␤»
21​:56 tadzik rakudo​: my @​a = (1); @​a ||= (); say @​a.perl
21​:56 p6eval rakudo 705435​: OUTPUT«maximum recursion depth exceeded␤ in 'Block​::count' at line 6342​:CORE.setting␤ in 'Block​::count' at line 6342​:CORE.setting␤ in 'Any​::join' at line 1␤ in 'Array​::perl' at line 3161​:CORE.setting␤ in<anon> at line 3161​:CORE.setting␤ in 'Any​::join' at line 1␤ in
21​:56 ..'Array​::perl' a…

@p6rt
Copy link
Author

p6rt commented Dec 1, 2011

From @ronaldxs

Just tried this today and it appears to me to be fixed. Will close in
next day or so if no objection.

Ron

@p6rt
Copy link
Author

p6rt commented Dec 1, 2011

@ronaldxs - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Dec 1, 2011

From @coke

On Thu, Dec 1, 2011 at 11​:09 AM, Ron Schmidt via RT
<perl6-bugs-followup@​perl.org> wrote​:

Just tried this today and it appears to me to be fixed.  Will close in
next day or so if no objection.

Ron

Is there a spec test that prevents this from regressing?

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jan 15, 2012

From @jnthn

On Mon May 09 03​:05​:24 2011, ronaldxs wrote​:

See on IRC http://irclog.perlgeek.de/perl6/2011-05-08#i_3697897

but for convenience I will include essential results below​:

21​:43 PhatEddy rakudo​: my @​a = (1); @​a ||= (); say @​a
21​:43 p6eval rakudo 705435​: ( no output )
21​:44 PhatEddy rakudo​: my @​a = (1); @​a ||= (); say ~@​a
21​:44 p6eval rakudo 705435​: OUTPUT«(timeout)»
21​:52 PhatEddy rakudo​: my @​a = (); say @​a.perl; @​a ||= (); say
@​a.perl
21​:52 p6eval rakudo 705435​: OUTPUT«[]␤[()]␤»
21​:56 tadzik rakudo​: my @​a = (1); @​a ||= (); say @​a.perl
21​:56 p6eval rakudo 705435​: OUTPUT«maximum recursion depth exceeded␤
in 'Block​::count' at line 6342​:CORE.setting␤ in 'Block​::count' at
line 6342​:CORE.setting␤ in 'Any​::join' at line 1␤ in
'Array​::perl' at line 3161​:CORE.setting␤ in<anon> at line
3161​:CORE.setting␤ in 'Any​::join' at line 1␤ in
21​:56 ..'Array​::perl' a…

my @​a = (1); @​a ||= (); say ~@​a
1
my @​a = (1); @​a ||= (); say @​a.perl
Array.new(1)

Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Apr 22, 2012

From @moritz

Tested in S03-operators/short-circuit.t.

@p6rt
Copy link
Author

p6rt commented Apr 22, 2012

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

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