help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Fixing the compiler (http://smalltalk.gnu.org/proje


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Fixing the compiler (http://smalltalk.gnu.org/project/issue/527)
Date: Sun, 12 Dec 2010 11:12:13 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.6

On 12/11/2010 05:29 PM, Gwenaël Casaccio wrote:
Hi,

index a98719d..550ae39 100644
--- a/packages/stinst/compiler/StartCompiler.st
+++ b/packages/stinst/compiler/StartCompiler.st
@@ -84,14 +84,13 @@ Behavior extend [

      evalString: aString to: anObject [
         <category: 'compiling'>
-       ^STInST.STEvaluationDriver new parseSmalltalk: aString
-           with: self evaluatorClass
+       ^ self evalString: aString to: anObject ifError: [ :f :l :m |
self error: (m displayString) ]
      ]

      evalString: aString to: anObject ifError: aBlock [
         <category: 'compiling'>
         ^STInST.STEvaluationDriver new
-           parseSmalltalk: aString
+           parseSmalltalk: '^ [', aString, ' ] value'
             with: self evaluatorClass
             onError:
                 [:m :l |

Gwen

_______________________________________________
help-smalltalk mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-smalltalk


Thanks!

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]