bug-gforth
[Top][All Lists]
Advanced

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

[Bug-gforth] [bug #37818] DUMP changes output base surprisingly


From: anonymous
Subject: [Bug-gforth] [bug #37818] DUMP changes output base surprisingly
Date: Tue, 27 Nov 2012 02:18:04 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0

URL:
  <http://savannah.gnu.org/bugs/?37818>

                 Summary: DUMP changes output base surprisingly
                 Project: Gforth
            Submitted by: None
            Submitted on: Tue 27 Nov 2012 02:18:03 AM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

To reproduce:

1. Enter "0 dump" into gforth, so it prints a stack underflow message, ok.

2. Enter "2 2 + ." and it prints "4" so everything seems to work fine.

3. Enter "8 8 + ." and it prints "10" because the output base is now
hexadecimal, which I wouldn't have expected.  It actually took me a while to
figure out why I was getting wrong-looking numbers in my output because I
thought it was my own buggy code making incorrect results.

Not sure what fix to suggest, e.g. maybe there should be an exception handler
that restores the old output base.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37818>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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