# New Ticket Created by  Juerd Waalboer 
# Please include the string:  [perl #131478]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=131478 >


code:

    class Command { method Str { "<$.^name>" } }
    # or even just:
    class Command { method Str { $.^name } }

gives:

    Unsupported use of $. variable; in Perl 6 please use the .kv method on e.g. 
.lines

workaround:

    self.^names


00:41 < Juerd> "Unsupported use of $. variable; in Perl 6 please use the .kv 
method on e.g. .lines" when                 trying $.^name instead of 
self.^name; bug or my mistake?  
00:50 < AlexDaniel> Juerd: bug.
00:53 < AlexDaniel> Juerd: I think this is where you would fix it: 
https://github.com/rakudo/rakudo/blob/8e0d000fbbe1a1430695ac5dbed5bce505d89a05/src/Perl6/Grammar.nqp#L2080-L2083
                                                                                
                    00:54 < AlexDaniel> like, maybe this: !before ‘^’? \w       
                                              00:55 < Juerd> Mind if I 
copy/paste that into a ticket?                                                  
 00:55 < AlexDaniel> sure

-- 
Met vriendelijke groet, // Kind regards, // Korajn salutojn,

Juerd Waalboer  <ju...@tnx.nl>
TNX

Reply via email to