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

(7^^7) yields a type (perhaps a Parrot type) which cannot be .WHAT-ed in Rakudo #1502

Closed
p6rt opened this issue Feb 15, 2010 · 8 comments
Closed
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 15, 2010

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

Searchable as RT72826$

@p6rt
Copy link
Author

p6rt commented Feb 15, 2010

From @masak

<diakopter> rakudo​: say (7^^7).WHAT
<p6eval> rakudo 70667a​: OUTPUT«Method 'WHAT' not found for invocant of
class 'Undef' [...]
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Mar 4, 2010

From @masak

<masak> rakudo​: say (90^^4).WHAT # diakopterbug
<p6eval> rakudo 4edd19​: OUTPUT«Method 'WHAT' not found for invocant of
class 'Undef'
<masak> pugs​: say (90^^4).WHAT
<p6eval> pugs​: OUTPUT«Bool␤»
<masak> rakudo​: say (0 ^^ 0).WHAT # actually, this is wrong too
<p6eval> rakudo 4edd19​: OUTPUT«Int()␤»
<masak> should be Bool().

From S03​: "Returns the true argument if there is one (and only one). Returns
C<Bool​::False> if all arguments are false or if more than one argument
is true."

@p6rt
Copy link
Author

p6rt commented May 6, 2010

From @masak

<masak> [...] (0 xor 0) gives an Int right now in Rakudo. that's wrong.
<masak> I believe there's a ticket for it.
<masak> here​: http://rt.perl.org/rt3/Ticket/Display.html?id=73280
<masak> it's talking about infix​:<^^>
<masak> but I'd bet the same goes for infix​:<xor>
<masak> rakudo​: say (90 xor 4).WHAT
<p6eval> rakudo 1eef08​: OUTPUT«Method 'WHAT' not found for invocant of class 'Undef'
<masak> pugs​: say (90 xor 4).WHAT
<p6eval> pugs​: OUTPUT«Bool␤»
<masak> rakudo​: say (0 xor 0).WHAT
<p6eval> rakudo 1eef08​: OUTPUT«Int()␤»
* masak updates ticket subject

@p6rt
Copy link
Author

p6rt commented May 6, 2010

From [Unknown Contact. See original ticket]

<masak> [...] (0 xor 0) gives an Int right now in Rakudo. that's wrong.
<masak> I believe there's a ticket for it.
<masak> here​: http://rt.perl.org/rt3/Ticket/Display.html?id=73280
<masak> it's talking about infix​:<^^>
<masak> but I'd bet the same goes for infix​:<xor>
<masak> rakudo​: say (90 xor 4).WHAT
<p6eval> rakudo 1eef08​: OUTPUT«Method 'WHAT' not found for invocant of class 'Undef'
<masak> pugs​: say (90 xor 4).WHAT
<p6eval> pugs​: OUTPUT«Bool␤»
<masak> rakudo​: say (0 xor 0).WHAT
<p6eval> rakudo 1eef08​: OUTPUT«Int()␤»
* masak updates ticket subject

@p6rt
Copy link
Author

p6rt commented May 6, 2010

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

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

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

@p6rt
Copy link
Author

p6rt commented Jan 27, 2011

From @Kodiologist

Fixed in 549d2a9; tests in short-circuit.t (roast 510d9d2).

@p6rt
Copy link
Author

p6rt commented Jan 27, 2011

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

@p6rt p6rt closed this as completed Jan 27, 2011
@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
Development

No branches or pull requests

1 participant