[squeak-dev] Re: Painful Form errors

karl ramberg karlramberg at gmail.com
Fri Feb 19 13:47:23 UTC 2016


Anyway, this fix gained a little speed up for larger lists, since the
cached form always was wrong before, and was recreated for each instance :-)





Best,
Karl

On Thu, Feb 18, 2016 at 5:32 PM, karl ramberg <karlramberg at gmail.com> wrote:

> Duh, ignore last mail...
> I understand now :-)
>
>
>
> Best,
> Karl
>
> On Thu, Feb 18, 2016 at 5:24 PM, karl ramberg <karlramberg at gmail.com>
> wrote:
>
>> Thanks, that works.
>> We can just call:
>> expandedForm replaceColor: Color white withColor: Color transparent
>>
>> The method Form>>replaceColor: oldColor withColor: newColor does change
>> the form in place so there is no need to re-assign to the variable.
>> I'm a little confused to why this did not work before.
>>
>> Best,
>> Karl
>>
>> On Thu, Feb 18, 2016 at 4:18 PM, marcel.taeumel <Marcel.Taeumel at hpi.de>
>> wrote:
>>
>>> Hi Karl,
>>>
>>> the semi-colon after "asFormOfDepth: Display depth" is wrong because that
>>> call creates a new form. You have to wrap it into parentheses and then
>>> call
>>> "replace.." on the result. :-)
>>>
>>> Best,
>>> Marcel
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://forum.world.st/Painful-Form-errors-tp4878535p4878550.html
>>> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20160219/f285a964/attachment.htm


More information about the Squeak-dev mailing list