[squeak-dev] Really strange problem

Casimiro de Almeida Barreto casimiro.barreto at gmail.com
Tue Jan 18 14:24:56 UTC 2011


Em 18-01-2011 12:03, Levente Uzonyi escreveu:
> On Tue, 18 Jan 2011, Casimiro de Almeida Barreto wrote:
>
>> Em 18-01-2011 11:21, Levente Uzonyi escreveu:
>>> (...)
>>> Which VM and image do you use? (I couldn't reproduce this problem.)
>> Happens both VMs ("traditional" and cog)
>
> Doesn't happen for me with Cog version 2349. What's your test case?
[casimiro at localhost 3.9-7]$ ./squeak -version
3.9-7 #1 Ter Jan  4 16:12:30 BRST 2011 gcc 4.5.1
Croquet Closure Cog VM [CoInterpreter VMMaker-oscog.43]
Linux localhost.localdomain 2.6.35.10-74.fc14.i686.PAE #1 SMP Thu Dec 23
16:10:47 UTC 2010 i686 i686 i386 GNU/Linux
plugin path: /opt/cog/lib/squeak/3.9-7/ [default:
/opt/cog/lib/squeak/3.9-7/]

Downloaded in 2011/01/04 16:01 using: svn co
http://www.squeakvm.org/svn/squeak/branches/Cog/

Same error as standard VM.
>
>>>
>>> But I found a bug in your code. This line:
>>>                 (combOfRest at: j) add: x before: 1 ].
>>> should probably be:
>>>                 (combOfRest at: j) addFirst: x ].
>> Yes, but add: x before: 1 works...
>
> It means that you want to add x before the element 1 in the
> collection. If 1 is not in the collection (which is the case most of
> the time), then it doesn't work.
>
>
> Levente




More information about the Squeak-dev mailing list