Hi,

S04 says thus:

    The default case:

        default {...}

    is exactly equivalent to

        when true {...}

However, that parses to:

    if $_ ~~ bool::true { ...; leave }

Which is not executed if $_ is false, unless ~~ bool::true does
something special. Perhaps default should be equivalent to:

    when $_ { ... }

That is, $_ is always $_, so the block is always executed.

(It also strikes me that using booleans in when clauses could/should be
disallowed entirely.)

-- 
Ilmari Vacklin
(wolverian)

Reply via email to