On 2020-06-01 02:21, Peter Pentchev wrote:
class Thing {
        multi method do-things(Int:D $value) {
                say "A thing can do things with an integer: $value";
        }

        multi method do-things(Rational:D $value) {
                say "A thing can do things with a rational number: $value";
        }
}


Hi Peter,

I have asked this question before.  Is it possible for
me to create my own methods.  The answer came back as
"no".

Did you just demonstrate for me how to create my own
methods?

-T

Reply via email to