SwiftForth Issues - red6rick/forthbox GitHub Wiki
I've spent the past 4 months working with SwiftForth, my head buried deep where it hasn't been for years. So, I've now got a list of things that need to be added and/or fixed. The list is not (and will never be) complete, but dynamic.
- In
FPMATH.F
the definition of>FLOAT
converts empty strings to0.0e0
This really isn't right; the simple fix is to trap for zero length strings:
: >FLOAT ( caddr n -- true | false ) ( -- r )
DUP 0= IF NIP EXIT THEN
R-BUF -TRAILING R@ ZPLACE R@ FCONVERT2 ( 0 | a\f ) IF
R> ZCOUNT + = DUP ?EXIT FDROP EXIT
THEN R> DROP 0 ;