Ray Henry wrote:

>Hi Ken
>
>Thank you again for your systematic approach to making changes to the
>interpreter and how we enter commands.  I do like the idea of named
>variables -- I've use a lot of #1000 = 12 or whatever.  I don't see any
>problem with replacing the number part of the parameter call with a
>name.  
>
>#myloopincr = 12
>
>or 
>
>y#myloopincr
>
>
>Why do you feel that the named reference needs to be bracketed?
>  
>
One problem with G-code is that whitespace is removed.  This makes it 
difficult to "see" the end of a name.

Consider the following:
#Xmax = 20
#Ymax = 6
G0 Y#YMax X#Xmax
The parser sees
g0y#ymaxx#xmax

There's no way to tell if you were trying to paste two variables 
together to move to y=020  (ymaxx would be 0 the first time it's used), 
or move to y=6, x=20.

- Steve


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to