[Pharo-project] SmalltalkImage

Henrik Johansen henrik.s.johansen at veloxit.no
Mon Nov 22 15:58:14 CET 2010


On Nov 22, 2010, at 3:14 30PM, Benjamin wrote:

> hi guys,
> 
> I have some questions about SmalltalkImage :)
> 
> 
> SmalltalkImage>>#platform had no sender and the same code than SmalltalkImage>>#os, so maybe platform should be deprecated (or remove) ?
#os is there as part of the original refactoring to support delegation in favour of a giant monolithic SmalltalkImage.
#platform was added later as a better(?) delegator for some of the methods, and is Pharo-specific.
> 
> Moreover, is that really useful to have this information in both SmalltalkImage and OSPlatform ?
All methods in SmalltalkImage that do the same as OSPlatform should already be deprecated, and expected to be removed in future releases. 
Having them there helps people port their code, though I'd personally prefer the messages to mention Smalltalk os rather than OSPlatform.
OSPlatform does not exist in Squeak (ie the methods are still in SmalltalkImage), but the #os delegator is.

> 
> (Should OSPlatform be a part of the Kernel ?
As SmalltalkImage isn't classified under Kernel, I don't think so.
Kernel vs. System categories is another debate :)

> Should references to OSPlatform be removed from the kernel ?)
> 

IMHO, they would be better replaced by Smalltalk os, but as I don't have time to do it myself, I won't complain they're not :)

Cheers,
Henry



More information about the Pharo-project mailing list