using collections

Paul Dufresne dufrp at hotmail.com
Sat May 3 15:12:48 PDT 2003


This extract seems odd. Especially about the size of the collection.
=============
G:\slate>slate.fas
Slate 1> 'src/init.slate' fileIn.
Hi, there!
Nil
Slate 2> root addSlot: #x.
Root<WM: *CONSOLE-OUTPUT*, (traits Stream)>
Slate 3> x: Set clone.
<WM: _traits, tally, array, hashBlock, equalsBlock, Iterator,>
<WM: *PRIMITIVE-COLLECTION*, (traits tally array hashBlock equalsBlock
Iterator)>
Slate 4> x newSize: 20.
<WM: _traits, tally, array, hashBlock, equalsBlock, Iterator,>
<WM: *PRIMITIVE-COLLECTION*, (traits tally array hashBlock equalsBlock
Iterator)>
Slate 5> x capacity.
10
Slate 6> x newSize: 40.
<WM: _traits, tally, array, hashBlock, equalsBlock, Iterator,>
<WM: *PRIMITIVE-COLLECTION*, (traits tally array hashBlock equalsBlock
Iterator)>
Slate 7> x capacity.
10
Slate 8> x size.
0
Slate 9> x add: 'Hi'.
Backtrace
---------
Method include: @ primitive
Method scanFor: @ primitive
Method value: @ primitive
Method hash @ primitive
Method whileTrue: @ primitive
Method value @ primitive
Block @ line 54 in src/method.slate
Method value: @ primitive
Block @ line 160 in src/sequence.slate
---------
Error: A method named 'hashMultiply' was not found for the arguments: 
(8727129)
Return to the Slate top level?  (y/n)
Please answer with y or n : y
Slate 10> x.
<WM: _traits, tally, array, hashBlock, equalsBlock, Iterator,>
<WM: *PRIMITIVE-COLLECTION*, (traits tally array hashBlock equalsBlock
Iterator)>
Slate 11> x add: 34.

*** - AREF: index 10 for
#(<WM: *PRIMITIVE-NIL*, (traits)> <WM: *PRIMITIVE-NIL*, (traits)>
  <WM: *PRIMITIVE-NIL*, (traits)> <WM: *PRIMITIVE-NIL*, (traits)>
  <WM: *PRIMITIVE-NIL*, (traits)> <WM: *PRIMITIVE-NIL*, (traits)>
  <WM: *PRIMITIVE-NIL*, (traits)> <WM: *PRIMITIVE-NIL*, (traits)>
  <WM: *PRIMITIVE-NIL*, (traits)> <WM: *PRIMITIVE-NIL*, (traits)>) is out of 
range
===========================================================




_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous !  
http://fr.ca.search.msn.com/




More information about the Slate mailing list