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

Doing .substr outside of Str yields a Mu in Rakudo #1966

Closed
p6rt opened this issue Jul 23, 2010 · 5 comments
Closed

Doing .substr outside of Str yields a Mu in Rakudo #1966

p6rt opened this issue Jul 23, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jul 23, 2010

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

Searchable as RT76682$

@p6rt
Copy link
Author

p6rt commented Jul 23, 2010

From @masak

<masak> rakudo​: say "foo".substr(4).WHAT
<p6eval> rakudo 937177​: OUTPUT«Mu()␤»
* masak submits rakudobug

Trying to do further string operations on the Mu object (such as
string concatenation) turns out not to work too well.

No applicable candidates found to dispatch to for 'infix​:<~>'.
Available candidates are​:
:(Any $x = { ... })
:(Any $a, Any $b)

I'd expect it to return "".

@p6rt
Copy link
Author

p6rt commented Jul 29, 2010

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

@p6rt
Copy link
Author

p6rt commented Oct 7, 2011

From @coke

On Thu Jul 22 18​:15​:30 2010, masak wrote​:

<masak> rakudo​: say "foo".substr(4).WHAT
<p6eval> rakudo 937177​: OUTPUT«Mu()␤»
* masak submits rakudobug

Trying to do further string operations on the Mu object (such as
string concatenation) turns out not to work too well.

No applicable candidates found to dispatch to for 'infix​:<~>'.
Available candidates are​:
:(Any $x = { ... })
:(Any $a, Any $b)

I'd expect it to return "".

It now returns a failure, which seems plausible.

14​:32 < [Coke]> rakudo​: say "foo".substr(4).WHAT
14​:32 <+p6eval> rakudo 1c2c2d​: OUTPUT«Failure()␤»

Marking as needs tests.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 15, 2012

From @bbkr

Test in

Raku/roast@c1c897cf4f

@p6rt
Copy link
Author

p6rt commented Jul 15, 2012

@bbkr - 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