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

Words sub form can not handle a $limit parameter of * (Whatever) in Rakudo #4408

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

Comments

@p6rt
Copy link

p6rt commented Jul 16, 2015

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

Searchable as RT125626$

@p6rt
Copy link
Author

p6rt commented Jul 16, 2015

From @masak

<PerlJam> Any reason why words("foo bar baz blat", *) shouldn't work
like words("foo bar baz blat",Inf) ?
<PerlJam> (same for lines)
<masak> I think it does.
<PerlJam> masak​: not here. I get​: Cannot call Numeric(Whatever​: );
none of these signatures match​: ...
<masak> oh
<masak> yeah, same here
* masak submits rakudobug about words($s, *) not working

Getting this on Rakudo ee36da5​:

$ perl6 -e 'say (words "foo bar baz", *).perl'
Cannot call Numeric(Whatever​: ); none of these signatures match​:
  (Mu​:U \v​: *%_)
  in block <unit> at -e​:1

@p6rt
Copy link
Author

p6rt commented Jul 16, 2015

From @perlpilot

The same bug exists for IO​::Handle.lines and IO​::Handle.words and the sub form of lines.

All of these should be tested.

--
perlpilot

@p6rt
Copy link
Author

p6rt commented Jul 16, 2015

From @perlpilot

On Thu Jul 16 13​:05​:10 2015, duff wrote​:

The same bug exists for IO​::Handle.lines and IO​::Handle.words and the
sub form of lines.

All of these should be tested.

Oops ... I forgot to mention that the bug has been fixed. We just need tests now.

--
perlpilot

@p6rt
Copy link
Author

p6rt commented Jul 17, 2015

From @perlpilot

Tests added.

--
perlpilot

@p6rt
Copy link
Author

p6rt commented Jul 17, 2015

@perlpilot - Status changed from 'new' 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