src/GroovyEvaluator.st
branchjk_new_structure
changeset 1691 826f8d7dc0df
parent 1656 c6fee8f3a640
--- a/src/GroovyEvaluator.st	Tue Aug 28 16:09:58 2012 +0000
+++ b/src/GroovyEvaluator.st	Mon Sep 03 14:57:38 2012 +0000
@@ -70,6 +70,7 @@
     "Created: / 02-12-2011 / 23:23:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
+
 !GroovyEvaluator methodsFor:'accessing'!
 
 currentNameSpace: ns
@@ -88,9 +89,11 @@
 
 !GroovyEvaluator methodsFor:'compiler interface'!
 
-evaluate:source 
+evaluate:src
+    | result |
 
-    ^self evaluate:source in: nil receiver: nil notifying: nil logged: false ifFail: [self error:'Evaluation failed'].
+    result := self evaluate:src in: nil receiver: nil notifying: nil logged: false ifFail: [self error:'Evaluation failed'].
+    ^result.
 
     "Created: / 02-09-2011 / 10:24:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
@@ -222,3 +225,4 @@
 version_SVN
     ^ '$Id$'
 ! !
+