Class.st
changeset 9497 687d681324f5
parent 9494 151f98864b52
child 9610 b523b76eb103
--- a/Class.st	Wed Aug 09 21:34:29 2006 +0200
+++ b/Class.st	Wed Aug 09 21:34:42 2006 +0200
@@ -533,9 +533,10 @@
     |owner|
 
     (owner := self owningClass) notNil ifTrue:[^ owner classFilename].
-    ^ classFilename
-
-    "Modified: 15.10.1996 / 18:53:21 / cg"
+    classFilename notNil ifTrue:[
+        ^ classFilename
+    ].
+    ^ (Smalltalk fileNameForClass:self) , '.st'
 !
 
 classPool
@@ -725,6 +726,15 @@
     ^ self nameSpace
 !
 
+getClassFilename
+    "return the name of the file from which the class was compiled."
+
+    |owner|
+
+    (owner := self owningClass) notNil ifTrue:[^ owner classFilename].
+    ^ classFilename
+!
+
 globalKeyForClassVar:aStringOrSymbol
     "this helps to encapsulate the (current) implementation of classVariables
      from the outside world. Currently, classvars are stored in
@@ -4958,5 +4968,5 @@
 !Class class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Class.st,v 1.494 2006-08-09 18:06:32 fm Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Class.st,v 1.495 2006-08-09 19:34:42 fm Exp $'
 ! !