[squeak-dev] Horribly mutable compiled method litterals

Stéphane Rollandin lecteur at zogotounga.net
Tue Nov 8 15:03:17 UTC 2016


Hello,

I just realized that one can change much too easily the behavior of some 
compiled methods dynamically, which seems to me more like a bug than a 
feature.

For example, if you do the following in a workspace:

Character constantNames at: 5 put: #hello

then until #constantNames is recompiled, it will return #(#backspace #cr 
#delete #escape #hello #null #newPage #space #tab) instead of 
#(#backspace #cr #delete #escape #lf #null #newPage #space #tab).

This allows horrible bugs horribly difficult to debug which is, IMHO, 
horrible.

So, is it a feature ?


Stef



More information about the Squeak-dev mailing list