Hi!
Just wondering. What about redefining new into:
-=-=-=-=-=-=-=-=-=-=-=-=
Behavior>>new
"Answer a new initialized instance of the receiver (which is a class)
with no indexable variables. Fail if the class is indexable."
self isAbstractClass ifTrue: [ self error: 'An abstract class cannot be
instantiated' ].
^ self basicNew initialize
-=-=-=-=-=-=-=-=-=-=-=-=
This may break a lot of code however.
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project