This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html Set by lizmat on 8 June 2022. |
|||
02:45
ACfromTX joined
05:27
CIAvash joined
|
|||
lizmat | In way you can have it: create a submethod foo(|c) and pass the capture on with |c to a multi sub *inside* the scope of the submethid | 09:11 | |
submethod foo(|c) { multi a(Int) { dd }; multi a(Str) { dd } } | 09:12 | ||
inside the subs, "self" will still refer to the self of the submethod, and thus attributes can be referred to as well | 09:13 | ||
antononcube ^^ | |||
10:15
CIAvash left
|
|||
antononcube | @lizmat Thanks! Interesting idea / solution. | 14:56 |