so could you write two tests and submit a slice so that we improve the system

Stef
>> convertFromBase: sourceBase to: targetBase
>>      "Convert the receiver (who has to represent a number string) from the 
>> given source base to 
>>        the given target base 
>>              
>>              'FFFF' convertFromBase: 16 to: 2
>>      "
>>      ^(sourceBase asString,'r', self) asNumber printStringBase: targetBase
> 
> Please, make that
> 
>       ^ (Number readFrom: self base: sourceBase) printStringBase: targetBase
> 
> No useless copying and concatenating, simpler and more elegant.
> 
> Sven
> 
> --
> Sven Van Caekenberghe
> http://stfx.eu
> Smalltalk is the Red Pill
> 
> 


Reply via email to