Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #70229] [BUG] Failure stringifies to '' in Rakudo, shouldn't

0 views
Skip to first unread message

Carl Mäsak

unread,
Nov 4, 2009, 10:37:53 AM11/4/09
to bugs-bi...@netlabs.develooper.com
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #70229]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=70229 >


<colomon> rakudo: say 1 ^^ 1
<p6eval> rakudo 74f561: OUTPUT«␤»
<TimToady> that's a P5ism
<colomon> rakudo: say (1 ^^ 1).WHAT
<p6eval> rakudo 74f561: OUTPUT«Failure()␤»
<moritz_> feel free to ticket that.
<TimToady> eep
<colomon> Failure stringifie to nothing?
<colomon> wait, Failure isn't what it should be, is it?
* masak submits rakudobug
<TimToady> it should just be false
<masak> just to be clear, what's the p5ism?
<TimToady> False === ''

Seems there are actually two bugs here:

* Failure stringifies to ''
* (1 ^^ 1).WHAT is Failure, should be False

I can submit a separate ticket for the latter bug, if that helps.

Will Coleda via RT

unread,
Oct 9, 2011, 11:56:27 AM10/9/11
to perl6-c...@perl.org
On Wed Nov 04 07:37:52 2009, masak wrote:
> <colomon> rakudo: say 1 ^^ 1
> <p6eval> rakudo 74f561: OUTPUT«␤»
> <TimToady> that's a P5ism
> <colomon> rakudo: say (1 ^^ 1).WHAT
> <p6eval> rakudo 74f561: OUTPUT«Failure()␤»
> <moritz_> feel free to ticket that.
> <TimToady> eep
> <colomon> Failure stringifie to nothing?
> <colomon> wait, Failure isn't what it should be, is it?
> * masak submits rakudobug
> <TimToady> it should just be false
> <masak> just to be clear, what's the p5ism?
> <TimToady> False === ''
>
> Seems there are actually two bugs here:
>
> * Failure stringifies to ''
> * (1 ^^ 1).WHAT is Failure, should be False
>
> I can submit a separate ticket for the latter bug, if that helps.

Current implementation:

11:55 < [Coke]> rakudo: say 1 ^^ 1
11:55 <+p6eval> rakudo aa8f19: OUTPUT«Nil␤»
11:55 < [Coke]> rakudo: say (1 ^^ 1).WHAT
11:55 <+p6eval> rakudo aa8f19: OUTPUT«Nil␤»

--
Will "Coke" Coleda

Carl Mäsak via RT

unread,
May 17, 2012, 9:49:51 AM5/17/12
to perl6-c...@perl.org
> Current implementation:
>
> 11:55 < [Coke]> rakudo: say 1 ^^ 1
> 11:55 <+p6eval> rakudo aa8f19: OUTPUT«Nil␤»
> 11:55 < [Coke]> rakudo: say (1 ^^ 1).WHAT
> 11:55 <+p6eval> rakudo aa8f19: OUTPUT«Nil␤»

This looks fixed to me, and tested. Resolving ticket.
0 new messages