Class.st
changeset 23725 39a32886f805
parent 23401 6b1a81de23a4
child 23734 8fc7d08c2743
--- a/Class.st	Tue Feb 12 20:47:05 2019 +0100
+++ b/Class.st	Tue Feb 12 20:49:34 2019 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1989 by Claus Gittinger
 	       All Rights Reserved
@@ -1773,7 +1775,7 @@
 source
     "return the classes full source code"
 
-    |code aStream|
+    |aStream|
 
 " this is too slow for big classes (due to the emphasis stored)...
     code := String new:1000.
@@ -1787,7 +1789,7 @@
         self warn:'Class>>#source: cannot create temporary file: ', ex description.
         ^ nil
     ].
-    [
+    ^ [
         FileOutErrorSignal handle:[:ex |
             aStream nextPut:$" ; nextPutAll:ex description; nextPut:$".
             FileOutErrorSignal isHandled ifTrue:[
@@ -1797,13 +1799,13 @@
             self fileOutOn:aStream.
         ].
         aStream reset.
-        code := aStream contents.
+        aStream contents.
     ] ensure:[
         aStream close.
     ].
-    ^ code
 
     "Modified: / 06-10-2006 / 13:34:18 / cg"
+    "Modified: / 12-02-2019 / 20:05:23 / Stefan Vogel"
 !
 
 sourceCodeManager