6macros: discussing the finer points of Perl 6 macros, Qtrees, and how to stay sane | irclog: irclog.perlgeek.de/6macros/today
Set by moderator on 28 July 2015.
02:45 vendethiel joined 08:36 Ven joined
masak I love the smell of the roadmap shrinking in the morning 10:28
Ven masak: can you give me your opinion on perl6advent.wordpress.com/?p=3504&...frame=true ?
well, I also don't have a slot for that advent post :/
masak I'm sure someone would be willing to trade their slot 10:29
Index 3 for dimension 2 out of range (must be 0..1) 10:30
> @ints[4;1]
er
> @ints[4;3]
Index 3 for dimension 2 out of range (must be 0..1)
in that one, it confused me that *both* were out of range, and that the error message was about the second one 10:31
maybe fix that?
otherwise, looks fine
Ven okay, thanks :) 10:33
It's missing a punchline still.
masak hm, #82 is nominally fixed, but I notice operators still don't survive being spliced. 10:51
$ perl6 bin/007 -e='macro moo() { sub infix:<**>(l, r) { return l ~ " to the " ~ r }; return quasi { "pedal" ** "metal" } }; moo()'
Method 'eval' not found for invocant of class 'Any'
11:59 pdcawley_ joined 12:26 Ven joined 15:13 Ven joined 16:13 FROGGS joined 17:10 Ven joined 18:37 Ven joined 18:49 Ven joined 18:55 Ven joined 19:17 Ven joined 20:06 Ven joined 20:15 Ven joined 20:38 Ven joined 20:40 Ven joined 20:45 Ven joined 20:59 Ven joined
masak one down, one to go :) 21:10
wrt github.com/masak/007/issues/82
hm. 22:01
bit of an unexpected design problem on this one.
macro gah() { return quasi { say(2 + 2) } }; sub infix:<+>(l, r) { return "lol, pwnd!" }; gah()
gives "lol, pwnd!" even after I applied the fixes I expected would help. 22:02
however, adding a block around the mainline code makes it work:
macro gah() { return quasi { say(2 + 2) } }; { sub infix:<+>(l, r) { return "lol, pwnd!" }; gah() }
prints "4"
hm... this seems consistent with Perl 6 behavior, though. 22:03
I just hadn't considered that overridden operators can be post-declared 22:04
ok -- well, then. in that case there's not much to worry about :) 22:05