Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
apply $*HAS_SELF context to self itself, duh...
  • Loading branch information
TimToady committed May 12, 2011
1 parent 4d51d3e commit e9571cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions STD.pm6
Expand Up @@ -3070,8 +3070,11 @@ grammar P6 is STD {
token term:sym<now>
{ <sym> » <O(|%term)> }

token term:sym<self>
{ <sym> » <O(|%term)> }
token term:sym<self> {
<sym> »
{ $*HAS_SELF ||.sorry("'self' used where no object is available") }
<O(|%term)>
}

token term:sym<defer>
{ <sym> » <O(|%term)> }
Expand Down

0 comments on commit e9571cb

Please sign in to comment.