#BUGFIX by stefan
authorStefan Vogel <sv@exept.de>
Fri, 09 Dec 2016 00:31:48 +0100
changeset 4227 839468b3bcbc
parent 4226 e914ce1c6859
child 4228 dd9d841f6c9b
#BUGFIX by stefan class: LazyValue added: #perform:withArguments: redefined from ProtoObject, the superclass
LazyValue.st
--- a/LazyValue.st	Fri Dec 09 00:31:25 2016 +0100
+++ b/LazyValue.st	Fri Dec 09 00:31:48 2016 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 2002 by eXept Software AG
               All Rights Reserved
@@ -472,6 +470,20 @@
         self _evaluate_.
     ].
     ^ aMessage sendTo:result
+!
+
+perform:aSelector withArguments:argArray
+    "send the message aSelector with all args taken from argArray
+     to the receiver."
+
+    block notNil ifTrue:[
+        IsDebuggingQuery query ifTrue:[
+            "enable debugging / inspecting"
+            ^ super perform:aSelector withArguments:argArray.
+        ].
+        self _evaluate_.
+    ].
+    ^ result perform:aSelector withArguments:argArray.
 ! !
 
 !LazyValue methodsFor:'testing'!