embedded systems developers tools, cross compilers
  Home  |   SwiftX Archive  |   SwiftForth Archive  |

Re: Why is 4+ legal?

From: David Graham <dgraham_at_GrahamAutomationInc.com>
Date: Fri, 1 Jun 2001 12:17:17 -0700

Kevin and Elizabeth,
Thanks for the feedback. I did find the explanation in the SwiftX
documentation. It is neat to know that a double value
-101 can be entered as -1..:-0-:..1-. I can write some really cryptic code
with that <g>.

My problem was not being aware that there were double number flags, i.e.
punctuation. I graduated to SwiftX from Vesta and New Micro Forth that had
dedicated words for the conversion, such as S>D. That works fine with
source code, but I can see that the SwiftX method would be convenient
dealing with user input. I had expected 4+ would have generated an error
message alerting me to the typo, and was curious why SwiftX did not
complain. It would help me avoid my typos if SwiftX disabled the double
number flags while compiling, where they are not really needed, and only
used them when interpreting user input, but I can live with how it is now
that I understand what is going on.

David Graham

----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/swiftx -- check them out!
Received on Fri Jun 01 2001 - 12:19:46 PDT

This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:23 PST