On Monday, February 27, Lloyd Fournier wrote: 
> You will have to use augment in this case I think:
> https://docs.perl6.org/syntax/augment
> 
> Augment Proc with your own shell method and &shell should call it.

No luck..

    use MONKEY-TYPING;
    augment class Proc  {
        method shell() {
          ...
        }
    }

gives

    Package 'Proc' already has a method 'shell' (did you mean to declare a
    multi-method?)

I tried numerous variants with multis and signatures that match the
existing signatures, but didn't have any success.

Brian

Reply via email to