[MWForum]Passed Variables in setpos

Harvey Bornfield mwforum@lists.mathcats.com
Thu, 27 Nov 2003 08:22:09 -0700


--=====================_50818583==.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

Dear Bob:

the MW interpretor cannot swallow the syntax
setpos [:x :y]
because it already expects a list
(MW cannot 'construct' your :x and :y into a list 'on the fly' as is written

a usable syntax for presenting :x and :y as a list is:

setpos list :x :y

Utilized in this way, MW will 'weld' the :x and :y variables into a list 
BEFORE he feeds it to setpos,
which was your intention.........

and a Thursday side order of

show list "Happy "Thanksgiving

(as Descartes would rejoice to say:
  there's no place like [0 0] for the holiday) ;-)))

Harvey
(whispers: Tucson, 68 today)



At 09:14 PM 11/26/2003, you wrote:
>The following ends with the error message "setpos does not like :x as input
>in place".
>
>I added the line show :t show :x show :y to prove the variables were being
>passed correctly. I just can not use them in setpos.
>
>to start
>place "sq9 50 -50
>end
>
>to place :t :x :y
>show :t show :x show :y
>newturtle :t
>setcolor "red
>setpos [:x :y]
>end
>
>Bob
>
>_______________________________________________
>MWForum mailing list
>MWForum@lists.mathcats.com
>http://lists.mathcats.com/mailman/listinfo/mwforum
>Attachments archived at:
>http://www.mathcats.com/mwforum/attachments.html
>To unsubscribe or for administrative questions contact
>mailto:mwforum-admin@lists.mathcats.com

"Music is the one incorporeal entrance into the higher world of knowledge 
which comprehends mankind, but mankind cannot comprehend."
Ludwig van Beethoven



--=====================_50818583==.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<body>
Dear Bob:<br><br>
the MW interpretor cannot swallow the syntax <br>
setpos [:x :y]<br>
because it already expects a list <br>
(MW cannot 'construct' your :x and :y into a list 'on the fly' as is
written<br><br>
a usable syntax for presenting :x and :y as a list is:<br><br>
<font color="#0000FF">setpos list :x :y<br><br>
</font>Utilized in this way, MW will 'weld' the :x and :y variables into
a list BEFORE he feeds it to setpos,<br>
which was your intention.........<br><br>
and a Thursday side order of <br><br>
show list &quot;Happy &quot;Thanksgiving <br><br>
(as Descartes would rejoice to say:<br>
&nbsp;there's no place like [0 0] for the holiday) ;-)))<br><br>
Harvey<br>
(whispers: Tucson, 68 today)<br><br>
<br><br>
At 09:14 PM 11/26/2003, you wrote:<br>
<blockquote type=cite class=cite cite>The following ends with the error
message &quot;setpos does not like :x as input<br>
in place&quot;.<br><br>
I added the line show :t show :x show :y to prove the variables were
being<br>
passed correctly. I just can not use them in setpos.<br><br>
to start<br>
place &quot;sq9 50 -50<br>
end<br><br>
to place :t :x :y<br>
show :t show :x show :y<br>
newturtle :t<br>
setcolor &quot;red<br>
setpos [:x :y]<br>
end<br><br>
Bob<br><br>
_______________________________________________<br>
MWForum mailing list<br>
MWForum@lists.mathcats.com<br>
<a href="http://lists.mathcats.com/mailman/listinfo/mwforum" eudora="autourl">http://lists.mathcats.com/mailman/listinfo/mwforum</a><br>
Attachments archived at:<br>
<a href="http://www.mathcats.com/mwforum/attachments.html" eudora="autourl">http://www.mathcats.com/mwforum/attachments.html</a><br>
To unsubscribe or for administrative questions contact <br>
<a href="mailto:mwforum-admin@lists.mathcats.com" eudora="autourl">mailto:mwforum-admin@lists.mathcats.com</a>
</blockquote>
<x-sigsep><p></x-sigsep>
<font face="Bell MT">&quot;Music is the one incorporeal entrance into the higher world of knowledge which comprehends mankind, but mankind cannot comprehend.&quot; <br>
Ludwig van Beethoven <br><br>
<br>
</font></body>
</html>

--=====================_50818583==.ALT--