[Pharo-project] compiled method inherits from Collection?

2012-06-19 Thread Fernando Olivero
(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? Fernando

Re: [Pharo-project] compiled method inherits from Collection?

2012-06-19 Thread Frank Shearar
On 19 June 2012 10:27, Fernando Olivero 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

Re: [Pharo-project] compiled method inherits from Collection?

2012-06-19 Thread Marcus Denker
On Jun 19, 2012, at 11:28 AM, Fernando Olivero 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? > CompiledMethods are magical. They are highly optimized fo

Re: [Pharo-project] compiled method inherits from Collection?

2012-06-19 Thread Fernando Olivero
Thanks for the info, its a shame we cant easily change the vm. Oh well, i should first ask for isCompiledMethod before isCollection now... Fernando On Tue, Jun 19, 2012 at 11:34 AM, Marcus Denker wrote: > > On Jun 19, 2012, at 11:28 AM, Fernando Olivero wrote: > >> (Object>>#name) isCollection

Re: [Pharo-project] compiled method inherits from Collection?

2012-06-19 Thread Herby Vojčík
Frank Shearar wrote: On 19 June 2012 10:27, Fernando Olivero 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.o

Re: [Pharo-project] compiled method inherits from Collection?

2012-06-19 Thread Henrik Sperre Johansen
On 19.06.2012 11:46, Fernando Olivero wrote: Thanks for the info, its a shame we cant easily change the vm. Oh well, i should first ask for isCompiledMethod before isCollection now... Fernando Why? I mean, each CompiledMethod IS a collection of bytes, even though those bytes hold a special m

Re: [Pharo-project] compiled method inherits from Collection?

2012-06-19 Thread Igor Stasenko
On 19 June 2012 14:33, Henrik Sperre Johansen wrote: > On 19.06.2012 11:46, Fernando Olivero wrote: >> >> Thanks for the info, its a shame we cant easily change the vm. >> >> Oh well, i should first ask for isCompiledMethod before isCollection >> now... >> >> Fernando > > > Why? > I mean, each Com

Re: [Pharo-project] compiled method inherits from Collection?

2012-06-20 Thread Stéphane Ducasse
It is historical to gain space. Now would be good to clean that but … not yet. > Thanks for the info, its a shame we cant easily change the vm. >>> >>> Oh well, i should first ask for isCompiledMethod before isCollection >>> now... >>> >>> Fernando >> >> >> Why? >> I mean, each CompiledMethod

Re: [Pharo-project] compiled method inherits from Collection?

2012-06-22 Thread Henrik Sperre Johansen
On 19.06.2012 22:01, Igor Stasenko wrote: On 19 June 2012 14:33, Henrik Sperre Johansen wrote: On 19.06.2012 11:46, Fernando Olivero wrote: Thanks for the info, its a shame we cant easily change the vm. Oh well, i should first ask for isCompiledMethod before isCollection now... Fernando W

Re: [Pharo-project] compiled method inherits from Collection?

2012-06-23 Thread Stéphane Ducasse
impressive :) >> but it could live with basicAt:/basicAt:put: just well. > Well, I tried changing it (proceeding all warnings not to do it) to a > variableByteSubclass: of Object (which implements at:/at:put:). > After recompileAll'ing, and then using a 1.4 image normally only a single > sender