š¦ Welcome to the IRC channel of the core developers of the Raku Programming Language (raku.org #rakulang). This channel is logged for the purpose of history keeping about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Logs available at irclogs.raku.org/raku-dev/live.html | For MoarVM see #moarvm Set by lizmat on 8 June 2022. |
|||||||||||||||||||||||||||||||||||||||
04:32
camelia left,
nine left,
nine_ joined
04:38
camelia joined
09:05
sena_kun joined
14:24
vrurg_ joined
|
|||||||||||||||||||||||||||||||||||||||
[Tux] |
|
14:27 | |||||||||||||||||||||||||||||||||||||
14:27
vrurg left
14:35
vrurg joined
14:38
vrurg_ left
14:47
vrurg_ joined
14:50
vrurg left
|
|||||||||||||||||||||||||||||||||||||||
Geth | rakudo/main: bd43800b14 | (Elizabeth Mattijsen)++ | src/core.e/Format.rakumod Make the Format class a Callable So that this can work: use v6.e.PREVIEW; my constant &logger = Format.new("%04d - %s\n"); for lines { m/.../; print logger $0, $1; } |
20:17 | |||||||||||||||||||||||||||||||||||||
gfldex | m: class C does Callable { method CALL-ME(*@a) {} }; sub d(|) {}; my &e = &d o C; | 22:10 | |||||||||||||||||||||||||||||||||||||
camelia | No such method 'arity' for invocant of type 'C'. Did you mean 'Array'? in block <unit> at <tmp> line 1 |
||||||||||||||||||||||||||||||||||||||
gfldex | It also needs method count and I believe that is an ENODOC. | ||||||||||||||||||||||||||||||||||||||
I will also check for ENOSPEC. | 22:11 | ||||||||||||||||||||||||||||||||||||||
m: class C does Callable { method CALL-ME(*@a) {} }; (1..3) ==> C(); | 22:15 | ||||||||||||||||||||||||||||||||||||||
camelia | ===SORRY!=== Error while compiling <tmp> Only routine calls or variables that can '.append' may appear on either side of feed operators. at <tmp>:1 ------> { method CALL-ME(*@a) {} }; (1..3) ==> āC(); |
||||||||||||||||||||||||||||||||||||||
gfldex | That's what I actually wanted to do and am not happy with. If the runtime can look for method append, there is nothing stoping it from looking for CALL-ME. | ||||||||||||||||||||||||||||||||||||||
22:45
sena_kun left
|