dont allow setting of the sender via instVarAt:put:
authorClaus Gittinger <cg@exept.de>
Fri, 16 Jan 1998 19:39:35 +0100
changeset 3182 2526de1e5030
parent 3181 c7041542f8b8
child 3183 acc37a9c087c
dont allow setting of the sender via instVarAt:put:
Context.st
--- a/Context.st	Fri Jan 16 16:04:01 1998 +0100
+++ b/Context.st	Fri Jan 16 19:39:35 1998 +0100
@@ -267,8 +267,8 @@
      Notice, that one of the next ST/X versions will get some syntactic
      extension to get this automatically)."
 
-    (index == 8) ifTrue:[^ nil].
-    (index == 9) ifTrue:[^ nil].
+    (index == 8) ifTrue:[^ nil].	"/ retvalTemp - invisible
+    (index == 9) ifTrue:[^ nil].	"/ handle to machine stack - invisible
     ^ super instVarAt:index
 !
 
@@ -277,8 +277,9 @@
      Notice, that one of the next ST/X versions will get some syntactic
      extension to get this automatically)."
 
-    (index == 8) ifTrue:[^ nil].
-    (index == 9) ifTrue:[^ nil].
+    (index == 2) ifTrue:[^ nil].	"/ sender - not allowed to change
+    (index == 8) ifTrue:[^ nil].	"/ retvalTemp - not allowed to change
+    (index == 9) ifTrue:[^ nil].	"/ handle to machine stack - not allowed to change
     ^ super instVarAt:index put:value
 !
 
@@ -1461,6 +1462,6 @@
 !Context class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Context.st,v 1.82 1998-01-05 13:02:13 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Context.st,v 1.83 1998-01-16 18:39:35 cg Exp $'
 ! !
 Context initialize!