bug-gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #60250] Number conversion


From: Helmut Eller
Subject: [bug #60250] Number conversion
Date: Wed, 17 Mar 2021 11:31:14 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?60250>

                 Summary: Number conversion
                 Project: Gforth
            Submitted by: ellerh
            Submitted on: Wed 17 Mar 2021 03:31:13 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Gforth seems to think that a single . is a number. E.g.: 


shell> gforth -Wall --no-rc
Gforth 0.7.9_20210218
Authors: Anton Ertl, Bernd Paysan, Jens Wilke et al., for more type `authors'
Copyright © 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
Type `help' for basic help
wordlist set-current  ok
: . ; 
*terminal*:2:5: warning: defined literal . as word ok
%. .s <2> 0 0  ok 2


My interpretation of the Forth-2012 standard is, that there should
be at least one digit before something can be considered a number.

So, I think that the current behavior is more annoying than helpful
and that the warning about defining a literal as word is a false
positive.


Helmut







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60250>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]