Super! That's what i was looking for.
Thanks!
David Santiago
Às 18:43 de 17/01/22, Clifton Wood escreveu:
You need the method object, and you can't get that from $a.test --
Try using the following:
when X::AdHoc {
say $a.^lookup('test').WHY; # TODO: This is wrong :-(
}
I've tested it
You need the method object, and you can't get that from $a.test --
Try using the following:
when X::AdHoc {
say $a.^lookup('test').WHY; # TODO: This is wrong :-(
}
I've tested it here (
https://replit.com/@Xliff/ThinDutifulExtensions#main.raku)
and it works!
:)
-X
On Mon, Jan 17, 2022 at
Hello Rakuns,
How do i access the declarator block of my object method?
I'm trying to do this, but it's not working:
class A {
#|( This is just a test with 3 parameters:
* p1 - parameter 1
* p2 - parameter 1
* p2 - parameter 1
)
method test($p1, $p2, $p3) {