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

Something is handling the Failure from a .substr in Rakudo #5281

Closed
p6rt opened this issue Apr 30, 2016 · 6 comments
Closed

Something is handling the Failure from a .substr in Rakudo #5281

p6rt opened this issue Apr 30, 2016 · 6 comments
Labels

Comments

@p6rt
Copy link

@p6rt p6rt commented Apr 30, 2016

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

Searchable as RT128038$

@p6rt
Copy link
Author

@p6rt p6rt commented Apr 30, 2016

From @masak

<TimToady> m​: ''.substr(5).handled.say
<camelia> rakudo-moar 1acf80​: OUTPUT«True␤»
<TimToady> that's one bug
* masak submits rakudobug
<masak> TimToady​: what output did you expect?
<TimToady> False
<masak> danke
<TimToady> something is testing the Failure for boolean/defined
somewhere and marking it handled

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Apr 30, 2016

From @lizmat

On 30 Apr 2016, at 17​:00, Carl Mäsak (via RT) <perl6-bugs-followup@​perl.org> wrote​:

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

<TimToady> m​: ''.substr(5).handled.say
<camelia> rakudo-moar 1acf80​: OUTPUT«True␤»
<TimToady> that's one bug
* masak submits rakudobug
<masak> TimToady​: what output did you expect?
<TimToady> False
<masak> danke
<TimToady> something is testing the Failure for boolean/defined
somewhere and marking it handled

$ 6 '(substr "",5).handled.say’
False

Looks to me that somehow the extra call level is causing the Failure to be handled.

Liz

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Apr 30, 2016

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

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented May 1, 2016

From @lizmat

Fixed with b61ca12 , tests needed.

On 30 Apr 2016, at 18​:11, Elizabeth Mattijsen <liz@​dijkmat.nl> wrote​:

On 30 Apr 2016, at 17​:00, Carl Mäsak (via RT) <perl6-bugs-followup@​perl.org> wrote​:

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

<TimToady> m​: ''.substr(5).handled.say
<camelia> rakudo-moar 1acf80​: OUTPUT«True␤»
<TimToady> that's one bug
* masak submits rakudobug
<masak> TimToady​: what output did you expect?
<TimToady> False
<masak> danke
<TimToady> something is testing the Failure for boolean/defined
somewhere and marking it handled

$ 6 '(substr "",5).handled.say’
False

Looks to me that somehow the extra call level is causing the Failure to be handled.

Liz

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Jul 9, 2016

From @zoffixznet

Tests added​: Raku/roast@ec748a9

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Jul 9, 2016

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

Loading

@p6rt p6rt closed this Jul 9, 2016
@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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant