Perl 6 - the future is here, just unevenly distributed

IRC log for #6macros, 2015-02-27

| Channels | #6macros index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
02:49 ilbot3 joined #6macros
02:49 Topic for #6macros is now 6macros: discussing the finer points of Perl 6 macros, Qtrees, and how to stay sane | irclog: irclog.perlgeek.de/6macros/today
08:37 Mouq joined #6macros
09:52 Ven joined #6macros
09:54 masak I got that question too. decided to politely decline.
09:55 Ven well, I first can't afford it and secondly I "school" both on week and weekend days...:)
09:56 masak *nod*
11:01 Ven joined #6macros
12:46 Ven joined #6macros
13:11 Ven Smalltalk is *really* interesting
13:11 Ven just like a lisp, it's funny how overlooked it is
14:13 Ven joined #6macros
16:01 Mouq m: sub given($val) { $OUTER::_ = $val }; given('a'); .say
16:01 Mouq ww
16:01 Mouq :P
16:26 Ven well, once again, hygiene proved to be a problem :P
16:30 Mouq "my $m = 42; macro out { quasi { $m = 5 } }; say out" "Cannot assign to an immutable value" Should this work?
16:33 Mouq m: say $*IN.encoding
16:33 Mouq Damnit
16:33 Mouq I'm out of it today
16:34 Ven no, this shouldn't. the macro should have its own lexical scope
16:34 Ven it should be COMPILING::$m by the current spec, iirc
16:35 Mouq Ven: Ahh, yes, that makes much more sense. And it does indeed work
16:36 Ven :)
16:36 Ven that doesn't work for me, though..
16:37 Ven my $a = 5; macro foo($val) { quasi { $COMPILING::a = {{{$val}}}; } }; foo('bar'); say $a
16:38 Mouq Oh, you're right. I was just checking the macro's output value…
16:38 Mouq This is relevant for macro given, btw
16:52 masak you're allowed to assign to $m there, yes.
16:52 masak I haven't seen the "Cannot assign to an immutable value" thing before.
16:52 masak that used to work, at least.

| Channels | #6macros index | Today | | Search | Google Search | Plain-Text | summary