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

x operator and infinite loop #2878

Closed
p6rt opened this issue Aug 30, 2012 · 4 comments
Closed

x operator and infinite loop #2878

p6rt opened this issue Aug 30, 2012 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 30, 2012

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

Searchable as RT114670$

@p6rt
Copy link
Author

p6rt commented Aug 30, 2012

From afiskon@gmail.com

Hello.

I use Rakudo Perl 2012.08.

$ perl6 -v
This is perl6 version 2012.08 built on parrot 4.4.0 revision RELEASE_4_4_0
$ uname -a
Linux office 3.2.0-29-generic-pae #​46-Ubuntu SMP Fri Jul 27 17​:25​:43
UTC 2012 i686 i686 i386 GNU/Linux

It seems that I found a bug in x operator. The following code works fine​:

$ perl6

"str" x 0

Meanwhile this code creates an infinite loop​:

my Int $x;
Int()
"str" x $x

I'm pretty sure that such behavior is incorrect.

@p6rt
Copy link
Author

p6rt commented Jan 4, 2013

From @moritz

fixed, and tested in S03-operators/repeat.t

@p6rt
Copy link
Author

p6rt commented Jan 4, 2013

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

@p6rt
Copy link
Author

p6rt commented Jan 4, 2013

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

@p6rt p6rt closed this as completed Jan 4, 2013
@p6rt p6rt added the Bug 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