Re: Bug in number conversion (?)

From: Bob Dickow <dickow_at_uidaho.edu>
Date: Thu, 29 Jun 2000 17:28:18 -0700

Funny huh? We have a 1+ and a 2+ that increment the top stack value, but
those words are as far as it goes. But it does seem odd to me that there
is such a large number of different punctuation ways to input double
precision. So, here is a new word to expand on the situation:

: 3+ ( -- ) EWX_LOGOFF FALSE ExitWindowsEx drop ; \ Just kidding.
8-)

Bob

>><JEFF Wrote:>
> >I recently typo'd in "3+" in a definition and found that I got the
double
> >number
> >3.0 -- that is surely not the intended behavior of the number
conversion
> >routines, is it?
> >
> >Jeff

><and Elizabeth Replied:>
> Yes, actually it is. See the discussion in Section 4.3 of the
SwiftForth
> Reference Manual. All legal punctuation (, . + / : and - anywhere but
at
> the left end of a number) triggers double precision. This has been
around
> in many Forths since the invention of Forth in the early 70's. It
Received on Thu Jun 29 2000 - 17:35:07 PDT


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 09-Feb-2012. Archive updated nightly.