Since this works and is in roast for two years I'm closing the ticket.
$ perl6-m -e 'constant name = "foo"; sub ::(name) () { 42 }; say foo()' 42 $ perl6-m -e 'constant name = "foo"; say (sub ::(name) () { 42 }).name' foo
Christian Bartolomaeus via RT Tue, 14 Oct 2014 03:25:39 -0700
Since this works and is in roast for two years I'm closing the ticket.
$ perl6-m -e 'constant name = "foo"; sub ::(name) () { 42 }; say foo()' 42 $ perl6-m -e 'constant name = "foo"; say (sub ::(name) () { 42 }).name' foo