develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r34583 - in trunk: . docs/book

From:
bernhard
Date:
December 29, 2008 08:29
Subject:
[svn:parrot] r34583 - in trunk: . docs/book
Message ID:
20081229162931.CAC36CB9FA@x12.develooper.com
Author: bernhard
Date: Mon Dec 29 08:29:30 2008
New Revision: 34583

Modified:
   trunk/CREDITS
   trunk/docs/book/ch05_pasm.pod
   trunk/docs/book/ch06_library.pod
   trunk/docs/book/ch08_architecture.pod

Log:
RT #61812: [PATCH] Fixed typos in docs -- removed duplicate example code
Courtesy of Saleem Ansari.


Modified: trunk/CREDITS
==============================================================================
--- trunk/CREDITS	(original)
+++ trunk/CREDITS	Mon Dec 29 08:29:30 2008
@@ -910,6 +910,10 @@
 E: zpmorgan@gmail.com
 D: Rakudo patch
 
+N: Saleem Ansari
+E: tuxdna@gmail.com
+D: Fixed typos in documentation
+
 N: cvsdummy
 U: cvsdummy
 E: cvs@perl.org

Modified: trunk/docs/book/ch05_pasm.pod
==============================================================================
--- trunk/docs/book/ch05_pasm.pod	(original)
+++ trunk/docs/book/ch05_pasm.pod	Mon Dec 29 08:29:30 2008
@@ -2790,149 +2790,6 @@
 Z<CHP-5-SECT-12.5>
 
 The C<isa> and C<can> opcodes are also useful when working with
-objects. C<isa>X<isa opcode (PASM)> checks whether an object belongs
-to or inherits from a particular class. C<can>X<can opcode (PASM)>
-checks whether an object has a particular method. Both return a true
-or false value.
-
-    isa I0, P3, "Foo"		# 1
-    isa I0, P3, "Bar"		# 1
-    can I0, P3, "__add"		# 1
-
-=head2 Complete Example
-
-Z<CHP-5-SECT-12.6>
-
-    newclass P1, "Foo"
-    addattribute P1, "$.i"                # Foo.i
-
-    find_type I1, "Foo"
-    new P3, I1          # call __init if it exists
-    set P3, 30          # call __set_integer_native method
-
-    new P4, I1          # same with P4
-    set P4, 12
-    new P5, I1          # create a new LHS for add
-
-    add P5, P3, P4      # __add method
-    set I10, P5         # __get_integer
-    print I10
-    print "\n"
-    print P5            # calls __get_string prints 'fortytwo'
-    print "\n"
-
-    inc P3              # __increment
-    add P5, P3, P4
-    print P5            # calls __get_string prints '43'
-    print "\n"
-
-    subclass P3, P1, "Bar"
-
-    find_type I1, "Bar"
-    new P3, I1
-
-    set P3, 100
-    new P4, I1
-    set P4, 200
-    new P5, I1
-
-    add P5, P3, P4
-    print P5                    # prints 300
-    print "\n"
-
-    set P5, 42
-    print P5                    # prints 'fortytwo'
-    print "\n"
-
-    inc P5
-    print P5                    # prints 41 as Bar's
-    print P5                    # prints 41 as _bar_inc decrements
-    print "\n"
-
-    set S0, "_half"             # set method name
-    set P2, P5                  # the object
-    savetop                     # preserve registers
-    callmethodcc                # create return continuation, call
-    restoretop
-    print I5
-    print "\n"
-
-=head2 Additional Object Opcodes
-
-Z<CHP-5-SECT-12.5>
-
-The C<isa> and C<can> opcodes are also useful when working with
-objects. C<isa>X<isa opcode (PASM)> checks whether an object belongs to or
-inherits from a particular class. C<can>X<can opcode (PASM)> checks whether
-an object has a particular method. Both return a true or false value.
-
-    isa I0, P3, "Foo"		# 1
-    isa I0, P3, "Bar"		# 1
-    can I0, P3, "__add"		# 1
-
-=head2 Complete Example
-
-Z<CHP-5-SECT-12.6>
-
-    newclass P1, "Foo"
-    addattribute P1, "$.i"                # Foo.i
-
-    find_type I1, "Foo"
-    new P3, I1          # call __init if it exists
-    set P3, 30          # call __set_integer_native method
-
-    new P4, I1          # same with P4
-    set P4, 12
-    new P5, I1          # create a new LHS for add
-
-    add P5, P3, P4      # __add method
-    set I10, P5         # __get_integer
-    print I10
-    print "\n"
-    print P5            # calls __get_string prints 'fortytwo'
-    print "\n"
-
-    inc P3              # __increment
-    add P5, P3, P4
-    print P5            # calls __get_string prints '43'
-    print "\n"
-
-    subclass P3, P1, "Bar"
-
-    find_type I1, "Bar"
-    new P3, I1
-
-    set P3, 100
-    new P4, I1
-    set P4, 200
-    new P5, I1
-
-    add P5, P3, P4
-    print P5                    # prints 300
-    print "\n"
-
-    set P5, 42
-    print P5                    # prints 'fortytwo'
-    print "\n"
-
-    inc P5
-    print P5                    # prints 41 as Bar's
-    print P5                    # prints 41 as _bar_inc decrements
-    print "\n"
-
-    set S0, "_half"             # set method name
-    set P2, P5                  # the object
-    savetop                     # preserve registers
-    callmethodcc                # create return continuation, call
-    restoretop
-    print I5
-    print "\n"
-
-=head2 Additional Object Opcodes
-
-Z<CHP-5-SECT-12.5>
-
-The C<isa> and C<can> opcodes are also useful when working with
 objects. C<isa>X<isa opcode (PASM)> checks whether an object belongs to or
 inherits from a particular class. C<can>X<can opcode (PASM)> checks whether
 an object has a particular method. Both return a true or false value.

Modified: trunk/docs/book/ch06_library.pod
==============================================================================
--- trunk/docs/book/ch06_library.pod	(original)
+++ trunk/docs/book/ch06_library.pod	Mon Dec 29 08:29:30 2008
@@ -7,7 +7,7 @@
 PIR and PASM are both very low-level languages by any programming
 standards, even though they support some important features of
 high-level dynamic languages,and PIR has some symbolic syntax features.
-Important reoccuring programming tasks in these lanuages have been
+Important re-occurring programming tasks in these lanuages have been
 extracted out into a series of runtime libraries to help make these
 tasks easier. Libraries written in PIR or PASM can be easily included
 and used from any of the high-level language compilers that target

Modified: trunk/docs/book/ch08_architecture.pod
==============================================================================
--- trunk/docs/book/ch08_architecture.pod	(original)
+++ trunk/docs/book/ch08_architecture.pod	Mon Dec 29 08:29:30 2008
@@ -183,7 +183,7 @@
 tree is flattened, and is passed into a series of substitutions and
 transformations. The compiler is the least interesting part or Parrot,
 little more than a simple rule-based filter module. It is simple, but
-it's a necessart part of Parrot.
+it's a necessary part of Parrot.
 
 For many languages the parser and compiler are essentially a single
 unit. Like the parser, the compiler is modular, so you can load



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About