Richard (>>):
>> What am I doing wrong?

Passing constant strings into the macro, instead of code.

<masak> r: macro m($code) { quasi { {{{$code}}} } }; class A { m(has
$.x is rw) }; say'OH HAI')).x
<camelia> rakudo-parrot e32249, rakudo-jvm e32249: OUTPUT«OH HAI␤»
* masak replies to the p6u email

So, it works fine, except for the assumption about strings.

// Carl

Reply via email to