Completely unrelated to my last message, I was wondering if the attached trivial change to STCompiler could be included in 2.3? Unless, of course, you want 2.2e to be 2.3, in which case it would be too much bother for its admittedly limited value.
-- Stephen Compall http://scompall.nocandysw.com/blog ##smalltalk,#gnu-smalltalk on Freenode IRC
--- orig/compiler/STCompiler.st
+++ mod/compiler/STCompiler.st
@@ -125,16 +125,12 @@
!STCompiler class methodsFor: 'compilation'!
compile: methodNode for: aBehavior classified: aString parser: aParser
- | cm |
- cm := self new
- class: aBehavior parser: aParser;
- visitNode: methodNode.
-
- cm methodCategory: aString.
-
^aBehavior
addSelector: methodNode selector
- withMethod: cm
+ withMethod: (self compile: methodNode
+ asMethodOf: aBehavior
+ classified: aString
+ parser: aParser)
!
compile: methodNode asMethodOf: aBehavior classified: aString parser: aParser
signature.asc
Description: This is a digitally signed message part
_______________________________________________ help-smalltalk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-smalltalk
