Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't use accessor methods in their own implementation
&name should not be defined in terms of &name with no terminating
condition
  • Loading branch information
hoelzro committed Jan 15, 2015
1 parent 08e5b67 commit f076396
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S05-regex.pod
Expand Up @@ -4302,9 +4302,9 @@ known as I<grammars>.
Just as a class can collect named actions together:

class Identity {
method name { "Name = $.name" }
method age { "Age = $.age" }
method addr { "Addr = $.addr" }
method name { "Name = $!name" }
method age { "Age = $!age" }
method addr { "Addr = $!addr" }

method desc {
print &.name(), "\n",
Expand Down

0 comments on commit f076396

Please sign in to comment.