Em Sex, 2009-03-06 às 18:51 +0100, TSa escreveu:
> I know that the use of 'is also' is called monkey patching but I can't
> understand why this is regarded as a bad thing. Having a class assembled
> from multiple modules is a rather normal affair.
You're describing Roles here, which is something y
HaloO,
Larry Wall wrote:
Although, interestingly, if the method is exported as a multi it
should automatically add in the current role or class as a constraint
on the (former) invocant so that multi dispatch will not overgeneralize.
I would expect
class Foo
{
method bar {...}
On Fri, Mar 06, 2009 at 12:15:18PM +1100, Timothy S. Nelson wrote:
> On Thu, 5 Mar 2009, Patrick R. Michaud wrote:
>> Also, I personally would prefer to not see explicit typing
>> on the invocants to most methods.
>
> Agreed. I wonder what I was thinking :).
Although, interestingly, if the
On Thu, 5 Mar 2009, Patrick R. Michaud wrote:
Log:
- Moved "defined" and "undefined" from Scalar.pod to Any.pod,
as per signature
...
+=item defined
+
+ our Bool multi defined ( Any $thing )
+ our Bool multi defined ( Any $thing, ::role )
+ our Bool multi method defined ( A
> Log:
> - Moved "defined" and "undefined" from Scalar.pod to Any.pod, as per
> signature
> ...
> +=item defined
> +
> + our Bool multi defined ( Any $thing )
> + our Bool multi defined ( Any $thing, ::role )
> + our Bool multi method defined ( Any $self)
> + our Bool multi method defined
Author: wayland
Date: 2009-03-05 06:58:38 +0100 (Thu, 05 Mar 2009)
New Revision: 25698
Modified:
docs/Perl6/Spec/S32-setting-library/Any.pod
docs/Perl6/Spec/S32-setting-library/Scalar.pod
Log:
- Moved "defined" and "undefined" from Scalar.pod to Any.pod, as per
signature
- Defin