June 19, 2012
9:32 a.m.
On 19 June 2012 10:27, Fernando Olivero <fernando.olivero@usi.ch> wrote:
(Object>>#name) isCollection = true
Actually is a subclass of ByteArray (instead of collaborating with one).
Does this seem strange to anybody else? Is it really needed?
Yes, I found it a bit strange: http://bugs.squeak.org/view.php?id=7570. As I understand it, CompiledMethod isKindOf: ByteArray just because it uses a lot of ByteArray's methods. It's a case of subclassing for code reuse, because otherwise one would have to implement a bunch of ByteArray-like methods in CompiledMethod. frank
Fernando