Re: Why +1 return 1 0

From: Appert, Kevin <kevin.appert_at_lmco.com>
Date: Thu, 13 Jan 2000 09:38:11 -0800

It is returning a double number because you have punctuation (the + symbol)
in the input. Forth Inc's NUMBER has done this since the battle of Hastings
in 1066. :1 ,1 and some others should give you the same effect. This comes
in handy when entering a time-of-day like 13:23:54 or a date like 1/1/1066

> ----------
> From: SF Talk[SMTP:sftalk_at_forth.com]
> Reply To: SF Talk
> Sent: Thursday, January 13, 2000 2:59 AM
> To: SF Talk
> Subject: Why +1 return 1 0
>
> Date: Thu, 13 Jan 2000 11:30:02 +0100
> From: "Charles Melice" <mail_at_forthcad.com>
> Subject: Why +1 return 1 0
>
>
> If you write +1 and press <enter> you have 1 0 on the stack.
> If you write -1 you have -1.
>
> To resolve : +1 1 ;
>
> But why is it so. Is it a bug ?
>
> Charles
>
>
>

.
Received on Thu Jan 13 2000 - 09:38:11 PST


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.