Re: method vs multi method

2018-09-14 Thread ToddAndMargo
On 09/14/2018 04:33 PM, Ralph Mellor wrote:      multi method kv ... Use of `multi` means there *may* be more than one *declaration* using the same declared routine name (`kv` in this case). There usually *will* be more than one. (Otherwise, why was it declared `multi`?) The normal way

Re: method vs multi method

2018-09-14 Thread Ralph Mellor
> multi method kv ... Use of `multi` means there *may* be more than one *declaration* using the same declared routine name (`kv` in this case). There usually *will* be more than one. (Otherwise, why was it declared `multi`?) The normal way to *use* a routine is to call it. If you declare m

method vs multi method

2018-09-14 Thread ToddAndMargo
Hi All, In the following: https://docs.perl6.org/routine/kv multi method kv(Any:U: -->List) multi method kv(Any:D: -->List) Does the "multi" mean ther are moe than one way to use the method, as in see the two instances above? Or something else? Also, it there was only one way to use