<div dir="ltr"><br>&lt;snip&gt;<br><div class="gmail_quote"><span dir="ltr"></span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">&gt; strength := #( #(0 0 0 0) #(0 0 0 0) #(0 0 0 0) #(0 0 0 0) #(0 0 0 0) #(0 0 0 0)<br>

</div><div class="Ih2E3d">&gt; #(2 1 0 0) #( 8 4 0 1) #(14 6 0 2) #(30 12 1 4)).<br>
<br></div>
&lt;snip&gt;<br>
 &nbsp;The literal syntax has a bit of context sensitive-ness. &nbsp;In a<br>
literal array, the # is not necessary to mean nested literal array.<br>
So,<br>
<div class="Ih2E3d"><br>
 &nbsp; strength := #((0 0 0 0) (0 0 0 0) (0 0 0 0) (0 0 0 0) (0 0 0 0) (0 0 0 0)<br>
</div><div class="Ih2E3d"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (2 1 0 0) (8 4 0 1) (14 6 0 2) (30 12 1 4)).<br>
<br>
</div>Also works.<br>
<br>
&lt;snip&gt;<br>
<br>
 &nbsp;It doesn&#39;t refuse the assignment, right? &nbsp;And you can&#39;t use a<br>
variable in a literal array to mean the contents of the variable.<br>
<br>
 &nbsp;Or, the above is actually a simplified code, and some other object<br>
is holding onto the reference to the &quot;Array new: 10&quot; array? &nbsp;If you<br>
assign a new array created from the literal array syntax into the same<br>
name variable, the guy who is holding onto the reference to &quot;Array<br>
new: 10&quot; wouldn&#39;t see the change.<br>
<br>
-- Yoshiki<br>
<br>
 &nbsp;Just curious, but what do these numbers represent?<br>
<br>
</blockquote></div>Gee, that was easy. Thanks. I never guessed that you had to leave the #&#39;s off inside the array. Those particular numbers don&#39;t mean anything. They were just an example of my problem. In my bridge dealer program, there are four sets of values assigned to each card. The first two numbers give the relative strength of a card when playing in a suit contract and when playing in a notrump contract. The numbers are based on the extensive double-dummy analysis performed by Thomas Andrew. The third number is is what some players of the Moscito bidding system call AKQ or slam points, and the fourth number is simply a binary representation that I use for determining loser count. I wasn&#39;t trying to be sneaky. The real numbers from 8 up to ace are:<br>
#((2 1 0 0) (4 3 0 1) (10 6 0 2) (23 14 0 4) (43 27 1 8) (74 51 2 16) (115 82 3 16)).<br>The totals are #(271 184 6 31). In the case of the first two numbers, I add them up for each suit, multiply by ten and divide by the total giving me a number from 0 to 40 that is similar to the work point count commonly used to evaluate bridge hands using 4, 3, 2, 1 for ace through jack for strength evaluation. Now that I think about it I can simply multiply each of the original numbers by 10 to eliminate that step.<br>
<br>I know that&#39;s more than you what to know about the numbers but you asked. The traditional 4, 3, 2, 1 evaluation undervalues aces and kings. Different numbers are used for suit play and notrump play because there is no chance that a card will be trumped during play. A human would find it difficult to use this method of evaluation but it is no problem for a computer. By the way, I was just converting procedures I had written in Forth and Ruby to Smalltalk. Now if I could just learn not to think in sequential terms.<br>
<br>Charlie<br><br>Charlie<br></div>