Re: LOCATE PROBLEM?

From: Rick VanNorman <rvn_at_forth.com>
Date: Tue, 31 Aug 1999 14:07:06 -0700

>From: "Doug Dillon" <DDillon_at_research.calcedar.com>
>
>When I LOCATE any word beginning with a number, SwiftForth2.00.0 responds
with >ACCESS_VIOLATION.

Doug,

Yep, first user found bug!

You can fix it by pasting the following code into a freshly-run
copy of swiftforth, then saving a new executable image.

PACKAGE CROSS-REFERENCE

: XTOI ( a n -- n ) BASE @ >R DECIMAL
   0 0 2SWAP >NUMBER ROT DROP ( x a n)
   1 3 WITHIN SWAP C@ [CHAR] | = AND AND
   R> BASE ! ;

' ?XREFITEM >CODE ' XTOI >CODE OVER 5 + - SWAP 1+ !

END-PACKAGE

.
Received on Tue Aug 31 1999 - 14:07:06 PDT


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

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