|
From: | Gwenael Casaccio |
Subject: | Re: [Help-smalltalk] SequenceableCollection new |
Date: | Wed, 06 Apr 2011 14:04:41 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 |
On 04/06/2011 01:20 PM, Holger Hans Peter Freyther wrote:
On 04/06/2011 01:06 PM, Wolfgang Eder wrote:hi wolfgang, try OrderedCollection newdo you know/understand what is causing this issue? It seems stuck in the VM/C code. _______________________________________________ help-smalltalk mailing list address@hidden http://lists.gnu.org/mailman/listinfo/help-smalltalk
Hi,it seems it fails when it prints the sequencableCollection there should be an infinite recursion (do need size and size need do) ;-)
Collection>>size [ | count | count := 0. self do: [:element | count := count + 1]. ^count ] SequencableCollection>>do: aBlock [ 1 to: self size do: [:i | aBlock value: (self at: i)] ] Gwen
[Prev in Thread] | Current Thread | [Next in Thread] |