Frank Shearar wrote:
On 19 June 2012 10:27, Fernando Olivero<fernando.oliv...@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,

Shouldn't this be better solved by a trait encapsulating that reused code?

Herby

because otherwise one would have to implement a bunch of
ByteArray-like methods in CompiledMethod.

frank

Fernando



Reply via email to