special case for #value message
authorClaus Gittinger <cg@exept.de>
Mon, 17 May 2004 16:21:13 +0200
changeset 1982 61c4a1986224
parent 1981 52b15b1e90b6
child 1983 868f48812257
special case for #value message
Plug.st
--- a/Plug.st	Thu May 13 20:49:16 2004 +0200
+++ b/Plug.st	Mon May 17 16:21:13 2004 +0200
@@ -179,9 +179,13 @@
 value
     "catch this one - its so common"
 
-    ^ self doesNotUnderstand:(Message selector:#value arguments:#())
+    |block|
 
-    "Created: 21.1.1997 / 15:21:24 / cg"
+    block := simulatedProtocol at:#value ifAbsent:[].
+    block isNil ifTrue:[
+        ^ self
+    ].
+    ^ block valueWithArguments:#()
 !
 
 value:arg
@@ -265,5 +269,5 @@
 !Plug class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/Plug.st,v 1.19 2003-05-07 14:09:30 martin Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/Plug.st,v 1.20 2004-05-17 14:21:13 cg Exp $'
 ! !