I am ok with the where applying on an explicit default argument. But
I understand the implicit
default argument as the way to manifest the absence of that argument.
So that doest not make much sense to test if that value is conform to
the where constraint
because in essence there is no value to t
On Wed Jul 14 16:25:26 2010, cognominal wrote:
> Here, the where clause is applied to the default value, the undefined
> type Any
> and results in an error.
>
> $ perl6
> > sub a(Range $r? where {$r.min >= 0} ) {}; a()
> Type objects are abstract and have no attributes, but you tried to
> access
# New Ticket Created by Stephane Payrard
# Please include the string: [perl #76514]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=76514 >
Here, the where clause is applied to the default value, the undefined type Any
and r