Index: docs/tutorial/ch06_objects.pod
===================================================================
--- docs/tutorial/ch06_objects.pod      (revision 22303)
+++ docs/tutorial/ch06_objects.pod      (revision 22304)
@@ -48,11 +47,25 @@
       ...
   }

+And an embedded class:
+
+  class Heart::Gold {
+      # class definition here
+
+      class Heart::Gold::InfiniteImprobabilityDrive {
+          # sub-class definition here
+      }
+
+      class Heart::Gold::Ship {
+          # Another sub-class definition here
+      }
+  }

I'm not sure this is right. Is a nested inner class automatically a
sub-class of the outer class? (I understand "sub-class" as "inherits
from the parent class")

Also I thought that the inner class definitions don't need the prefix
from the outer class, but I can't find it in the specs from a quick glance.

Moritz

-- 
Moritz Lenz
http://moritz.faui2k3.org/ |  http://perl-6.de/

Reply via email to