<br/>a := Array new: 2.
<br/>a at: 1 put: (Point x: 1 y: 1).
<br/>a at: 2 put: (Point x: 2 y: 2).
<br/><br/>a =&gt; &nbsp;{1@1 . 2@2}
<br/><br/><br/><div class='shrinkable-quote'><br/>&gt; On Jun 20, 2016, at 9:41 AM, Michael Rice [via Smalltalk] &lt;<a href="/user/SendEmail.jtp?type=node&node=4901913&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:
<br/>&gt; 
<br/>&gt; I've been trying to create an array of points (in Squeak 5) but am failing badly. See below: first part =&gt; what I get when I exec &quot;print it&quot; on the first part. Guidance please.
<br/>&gt; 
<br/>&gt; #(1@1 2@2) =&gt; #(1 #@ 1 2 #@ 2)
<br/>&gt; 
<br/>&gt; #((Point x: 1 y: 1) (Point x: 2 y: 2)) =&gt; &nbsp;#(#(#Point #x: 1 #y: 1) #(#Point #x: 2 #y: 2))
<br/>&gt; 
<br/>&gt; #(12 'b' $c) =&gt; #(12 'b' $c)
<br/>&gt; 
<br/>&gt; #(12 'b' $c 1@1) =&gt; #(12 'b' $c 1 #@ 1)
<br/>&gt; 
<br/>&gt; #(12 'b' $c (1@1)) =&gt; #(12 'b' $c #(1 #@ 1))
<br/>&gt; 
<br/>&gt; #(12 'b' $c (Point x: 1 y: 1)) =&gt; #(12 'b' $c #(#Point #x: 1 #y: 1))
<br/>&gt; 
<br/>&gt; Point x:1 y: 1 =&gt; &nbsp;1@1
<br/>&gt; 
<br/>&gt; (Point x:1 y: 1) =&gt; 1@1
<br/>&gt; 
<br/>&gt; #((Point x: 1 y: 1)) =&gt; #(#(#Point #x: 1 #y: 1))
<br/>&gt; 
<br/>&gt; #(1@1) =&gt; #(1 #@ 1)
<br/>&gt; 
<br/>&gt; 
<br/>&gt; _______________________________________________ 
<br/>&gt; Beginners mailing list 
<br/>&gt; [hidden email] 
<br/>&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br/>&gt; 
<br/>&gt; 
<br/>&gt; If you reply to this email, your message will be added to the discussion below:
<br/>&gt; <a href="http://forum.world.st/How-does-one-create-an-array-of-points-tp4901909.html" target="_top" rel="nofollow" link="external">http://forum.world.st/How-does-one-create-an-array-of-points-tp4901909.html</a><br/>&gt; To start a new topic under Squeak - Beginners, email <a href="/user/SendEmail.jtp?type=node&node=4901913&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> 
<br/>&gt; To unsubscribe from Squeak - Beginners, click here.
<br/>&gt; NAML
</div><br/>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/How-does-one-create-an-array-of-points-tp4901909p4901913.html">Re: How does one create an array of points?</a><br/>
Sent from the <a href="http://forum.world.st/Squeak-Beginners-f107673.html">Squeak - Beginners mailing list archive</a> at Nabble.com.<br/>