[squeak-dev] Re: [Squeak 4.0] A Couple of Methods (PLEASE REVIEW)

Andreas Raab andreas.raab at gmx.de
Fri Feb 26 22:35:20 UTC 2010


I agree with the overload aspect but [Smalltalk license] is just to good 
not to use it. Even if it the license text is stored elsewhere, for 
simplicity I would like to have [Smalltalk license].

Cheers,
   - Andreas

On 2/26/2010 11:27 PM, keith wrote:
> Please could you put #licence somewhere else. Smalltalk is way overloaded.
>
> Options I can think of include:
>
> a) SystemVersion class #licence
>
> My preferred option
> b) New class SystemLicence in the category System-Info
> using the class comment, retrievable via SystemLicence comment.
>
> thanks in advance
>
> Keith
>
>> So to avoid pasting the whole license into
>> SystemDictionary>>condenseSources, I added SystemDictionary>>license,
>> which just answers a ByteString containing the license agreement, and
>> makes the change to #condenseSources a one-liner. Note that I pasted
>> verbatim what Andreas sent me; I would like it if folks could make
>> sure I have the right text there. Another advantage to having the
>> license live in it's own method is, it's easy to change if the SFC
>> wants last-minute changes. A third advantage (and this just makes me
>> smile) is you can print:
>>
>> [ Smalltalk license. ]
>>
>> Which answers the ByteString containing the text of the license
>> agreement. Place your bets on how long it'll take Andreas to come up
>> with a one line method that transforms legalese into friendly
>> LOLspeak:P
>>
>> Andreas recommended the following test case to me:
>>
>> Filein the attachment SystemDictionary-license.st, followed by the
>> attachment SystemDictionary-condenseSources.st.
>>
>> Then do... [ Smalltalk condenseSources. ]
>>
>> Afterwords, make sure it worked with...
>>
>> [ Smalltalk allClassesAndTraits do:[:cls| cls compileAll]. ]
>>
>> If anyone can recommend other interesting test cases around this,
>> please let me know. The changes and sources files are still fairly
>> arcane to the Fancy New Guy:)
>>
>>
>> --
>> Ron
>> <SystemDictionary-license.st><SystemDictionary-condenseSources.st>
>
>
>




More information about the Squeak-dev mailing list