Skip to content

Commit

Permalink
Update infix:sym<+> example in Ep 7.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcurtis committed Jul 20, 2010
1 parent 8a84280 commit 97252df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorial_episode_7.pod
Expand Up @@ -243,7 +243,7 @@ should be generated. Instead of generating a subroutine invocation with the
operands as arguments, it will generate the specified instruction with the
operator's operands as arguments. Neat huh? Let's look at an example:

proto 'infix:+' is tighter('infix:<') is pirop('n_add') { ... }
token infix:sym<+> { <sym> <O('%additive, :pirop<add>')> }

This specifies to use the C<n_add> instruction, which tells Parrot to create a
new result object instead of changing one of the operands. Why not just the
Expand Down

0 comments on commit 97252df

Please sign in to comment.