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

"42 xx Inf" does not create an infinite list #4409

Closed
p6rt opened this issue Jul 16, 2015 · 5 comments
Closed

"42 xx Inf" does not create an infinite list #4409

p6rt opened this issue Jul 16, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jul 16, 2015

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

Searchable as RT125627$

@p6rt
Copy link
Author

p6rt commented Jul 16, 2015

From @AlexDaniel

Code​:
say 5 xx Inf;

Result​:
This type cannot unbox to a native integer
  in block <unit> at ./test.pl​:2

I expected an infinite list to be created.

22​:09​:08<lucasb> AlexDaniel​: … IMO, it also should work with Inf

S03 says that xx should accept *, it does (
http://design.perl6.org/S03.html#Replication). But maybe it would make
sense to add Inf as well.

@p6rt
Copy link
Author

p6rt commented Jul 17, 2015

From @lizmat

Fixed with c0f03bf9b606462de6aa , closable with tests.

On 16 Jul 2015, at 12​:47, Alex Jakimenko (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Alex Jakimenko
# Please include the string​: [perl #​125627]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=125627 >

Code​:
say 5 xx Inf;

Result​:
This type cannot unbox to a native integer
in block <unit> at ./test.pl​:2

I expected an infinite list to be created.

22​:09​:08<lucasb> AlexDaniel​: … IMO, it also should work with Inf

S03 says that xx should accept *, it does (
http://design.perl6.org/S03.html#Replication). But maybe it would make
sense to add Inf as well.

@p6rt
Copy link
Author

p6rt commented Jul 17, 2015

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

@p6rt
Copy link
Author

p6rt commented Jul 26, 2015

From @moritz

Test added in Raku/roast@e86a689260

@p6rt
Copy link
Author

p6rt commented Jul 26, 2015

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

@p6rt p6rt closed this as completed Jul 26, 2015
@p6rt p6rt added the testneeded label Jan 5, 2020
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