[Survey] About the cognitive surcharge of super
Tim Rowledge
squeak-dev at lists.squeakfoundation.org
Fri Sep 6 22:25:40 UTC 2002
In message <b67ed9714b.rowledge at goldskin.attbi.com>
Tim Rowledge <tim at sumeru.stanford.edu> wrote:
> Trivial to fix if people would like it;
...and trivial to get wrong as well. argumentCount should be 0 of
course, as it is in the changeset I saved minutes after the one I
included:-)
>
'From Squeak3.1beta of 3 October 2001 [latest update: #4478] on 5 January 2002 at 11:21:57 am'!
"Change Set: byteCodePrimClassFix
Date: 5 January 2002
Author: tim at sumeru.stanford.edu
Snippet of VM code to change the bytecodePrimClass bytecode to send the special selector #23 (#class) instead of shortcircuiting it. This ought to be considered as a possible improvement in the life of proxy programmers."!
!Interpreter methodsFor: 'common selector sends' stamp: 'tpr 1/5/2002 11:19'!
bytecodePrimClass
messageSelector _ self specialSelector: 23.
argumentCount _ 0.
self normalSend. ! !
tim
--
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
Useful random insult:- A titanic intellect... In a world full of icebergs.
More information about the Squeak-dev
mailing list
|