Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Quantum::Superpositions problem

by moritz (Cardinal)
on Sep 15, 2008 at 12:19 UTC ( [id://711439]=note: print w/replies, xml ) Need Help??


in reply to Quantum::Superpositions problem

I don't know about Quantum::Superpositions, but if it tries to implement current Perl 6 semantics, your expression should yield true as you thought.

any(2) is just the same as 2, so any(2) * all(5, 6) evaluates to all(10, 12), and all(10, 12) < 18 autothreads to all(10 < 18, 12 < 18), which in turn evaluates to all(Bool::True, Bool::True).

In boolean context that collapses to Bool::True, or in Perl 5 presumable 1.

So I suspect that QS is either out of date or has a bug.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://711439]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-23 23:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found