"Mad Mountain" <
[hidden email]> wrote in message
news:15g_9.67$
[hidden email]...
> does dolphin support multi dimensional arrays and what is the protocol or
> message or ???????
> thanks
There is no specific class for this in the base system, however it can be
easily created with an Array of Arrays. If you want to optimize for
performance you can just use one Array and a little math to emulate the x
and y coordinates. It seems there has been quite bit of discussion about
this sort of thing, do a Google Groups search for more info:
<a href="http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=matrix+group%3">http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=matrix+group%3
Acomp.lang.smalltalk&btnG=Google+Search
Here is some simple code, normally you would create your own class and wrap
this:
==========
"Create a 20x20 matrix."
matrix := (1 to: 20) collect: [:count | Array new: 20].
"Set a value."
(matrix at: 5) at: 10 put: 1.
"Get a value."
(matrix at: 5) at: 10
==========
Chris