Ticket #704: minor-docs.diff
File minor-docs.diff, 2.3 KB (added by amk, 13 years ago) |
---|
-
docs/book/ch03_pir.pod
4329 4329 Adding a role to a class is called I<composing> that role, and any class 4330 4330 that has been composed with a role C<does> that role. 4331 4331 4332 Roles are created as PMC and can be manipulated through opcodes and methods4332 Roles are created as PMCs and can be manipulated through opcodes and methods 4333 4333 like other PMCs: 4334 4334 4335 4335 $P0 = new 'Role' … … 4789 4789 is especially important when dealing with high-level languages. We'll go into 4790 4790 detail about annotations and their use in Chapter 10. 4791 4791 4792 Annotations are created using the c<.annotation> keyword. Annotations consist4792 Annotations are created using the C<.annotation> keyword. Annotations consist 4793 4793 of a key/value pair, where the key is a string and the value is an integer, 4794 4794 a number, or a string. Since annotations are stored compactly as constants in 4795 4795 the compiled bytecode, PMCs cannot be used. -
docs/book/ch04_compiler_tools.pod
253 253 254 254 =over 4 255 255 256 =item * C<commandline_prompt>256 =item * C<commandline_prompt> 257 257 258 258 The C<commandline_prompt> method allows you to specify a custom prompt to 259 259 display to users in interactive mode. 260 260 261 =item * C<commandline_banner>261 =item * C<commandline_banner> 262 262 263 263 The C<commandline_banner> method allows you to specify a banner message that 264 264 displays at the beginning of interactive mode. -
docs/pct/pct_optable_guide.pod
245 245 course, this fully depends on the specification of your language. Sometimes, 246 246 you need a different rule to define subroutine invocation syntax. This is the 247 247 case when arguments can be other objects than operands of normal operators 248 (which, again, are defined by the c<term:> rule).248 (which, again, are defined by the C<term:> rule). 249 249 250 250 An example to handle indexing (assuming the index is an operand as any other 251 251 operator's operand) is this: