develooper Front page | perl.perl6.compiler | Postings from June 2018

[perl #132980] Coercion type apparently does not check the actualtype of the coerced value

Thread Next
From:
Zoffix Znet via RT
Date:
June 17, 2018 18:56
Subject:
[perl #132980] Coercion type apparently does not check the actualtype of the coerced value
Message ID:
rt-4.0.24-6232-1529261786-1600.132980-15-0@perl.org


Re-opening this, as there's a much more common case where a typecheck of the coercion result would be desired and that's when coercion results in a Failure:

    <Zoffix_> m: multi sub foo(Int() $) { }; foo Inf
    <camelia> rakudo-moar 5a6ff4073: ( no output )

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About