[pypy-svn] r47948 - pypy/dist/pypy/lang/smalltalk

akuhn at codespeak.net akuhn at codespeak.net
Thu Oct 25 17:24:42 CEST 2007


Author: akuhn
Date: Thu Oct 25 17:24:42 2007
New Revision: 47948

Modified:
   pypy/dist/pypy/lang/smalltalk/classtable.py
Log:
documented would be correct minimal setup for classtable

Modified: pypy/dist/pypy/lang/smalltalk/classtable.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/classtable.py	(original)
+++ pypy/dist/pypy/lang/smalltalk/classtable.py	Thu Oct 25 17:24:42 2007
@@ -32,9 +32,24 @@
         classtable[name] = shadow
         return shadow
     
+    #   A complete minimal setup (including Behavior) would look like this
+    #
+    #   class:              superclass:         metaclass:
+    #   ------------------- ------------------- -------------------
+    #   Object              *nil                 Object class
+    #   Behavior            Object              Behavior class
+    #   ClassDescription    Behavior            ClassDescription class
+    #   Class               ClassDescription    Class class
+    #   Metaclass           ClassDescription    Metaclass class
+    #   Object class        *Class              *Metaclass
+    #   Behavior class      Object class        *Metaclass
+    #   ClassDescription cl Behavior class      *Metaclass
+    #   Class class         ClassDescription cl *Metaclass
+    #   Metaclass class     ClassDescription cl *Metaclass
+    
     #    Class Name            Super class name
     cls_nm_tbl = [
-        ["w_Object",           "w_ProtoObject"],
+        ["w_Object",           "w_ProtoObject"], # there is not ProtoObject in mini.image
         ["w_Behavior",         "w_Object"],
         ["w_ClassDescription", "w_Behavior"],
         ["w_Class",            "w_ClassDescription"],



More information about the Pypy-commit mailing list