[svn:parrot] r36544 - trunk/docs/book

whiteknight at svn.parrot.org whiteknight at svn.parrot.org
Tue Feb 10 16:28:00 UTC 2009


Author: whiteknight
Date: Tue Feb 10 16:28:00 2009
New Revision: 36544
URL: https://trac.parrot.org/parrot/changeset/36544

Log:
[Book] a few misc fixes in chapter 3

Modified:
   trunk/docs/book/ch03_pir_basics.pod

Modified: trunk/docs/book/ch03_pir_basics.pod
==============================================================================
--- trunk/docs/book/ch03_pir_basics.pod	Tue Feb 10 16:21:29 2009	(r36543)
+++ trunk/docs/book/ch03_pir_basics.pod	Tue Feb 10 16:28:00 2009	(r36544)
@@ -316,12 +316,12 @@
 takes more time to execute during the compilation phase. Here's an example
 of where a register could be reused:
 
-.sub main
-  $S0 = "hello "
-  print $S0
-  $S1 = "world!"
-  print $S1
-.end
+  .sub main
+    $S0 = "hello "
+    print $S0
+    $S1 = "world!"
+    print $S1
+  .end
 
 We'll talk about subroutines in more detail in the next chapter. For now,
 we can dissect this little bit of code to see what is happening. The C<.sub>
@@ -345,12 +345,12 @@
 the second allocation. Notice that this code with only one register performs
 identically to the previous example:
 
-.sub main
-  $S0 = "hello "
-  print $S0
-  $S0 = "world!"
-  print $S0
-.end
+  .sub main
+    $S0 = "hello "
+    print $S0
+    $S0 = "world!"
+    print $S0
+  .end
 
 In some situations it can be helpful to turn the allocator off and avoid
 expensive optimizations. Such situations are subroutines where there are a
@@ -762,11 +762,11 @@
 choose not to implement each interface explicitly and instead let Parrot
 call the default implementations>. 
 
-VTABLES are very strict: There are a fixed number with fixed names and
+VTABLEs are very strict: There are a fixed number with fixed names and
 fixed argument lists. You can't just create any random VTABLE interface that
 you want to create, you can only make use of the ones that Parrot supplies
 and expects. To circumvent this limitation, PMCs may have METHODS in
-addition to VTABLES. METHODS are arbitrary code functions that can be
+addition to VTABLEs. METHODs are arbitrary code functions that can be
 written in C, may have any name, and may implement any behavior.
 
 =head2 VTABLE Interfaces


More information about the parrot-commits mailing list