ClassDescription.st
changeset 6620 00e6c50c3a6d
parent 6545 eef9e5e8c487
child 6621 c919ffc9b646
--- a/ClassDescription.st	Thu Jul 11 13:38:52 2002 +0200
+++ b/ClassDescription.st	Thu Jul 11 16:20:28 2002 +0200
@@ -1339,10 +1339,20 @@
 compile: aString classified: protocol attributes: attributes
     "compile some method-code"
 
+    |mthd|
+
+    mthd := self compile: aString classified: protocol.
     attributes notEmpty ifTrue:[
-        self error:'non-empty attributes not yet supported' mayProceed:true.
+        attributes keysAndValuesDo:[:aK :aV |
+            aK = 'package' ifTrue:[
+                "/ mthd package:aK
+            ] ifFalse:[
+                self error:(aK , '-attribute not yet supported') mayProceed:true.
+            ].
+        ].
     ].
-    ^ self compile: aString classified: protocol
+
+    ^ mthd.
 !
 
 compiler
@@ -3964,6 +3974,6 @@
 !ClassDescription class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/ClassDescription.st,v 1.134 2002-05-14 12:11:19 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ClassDescription.st,v 1.135 2002-07-11 14:20:28 cg Exp $'
 ! !
 ClassDescription initialize!