bugGforth - Bugs: bug #37818, DUMP changes output base...

 
 

bug #37818: DUMP changes output base surprisingly

Submitter:  None
Submitted:  Tue 27 Nov 2012 02:18:03 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  paysan
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 27 Nov 2012 11:24:49 PM UTC, comment #1: 

We have that, it's called BASE-EXECUTE.

: dump ['] dump $10 base-execute ;

should wrap up dump nicely.

Bernd Paysan <paysan>
Group administrator
Tue 27 Nov 2012 02:18:03 AM UTC, original submission:  

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by paysan (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-06-15 paysan Open/ClosedOpen Closed
    2012-11-27 paysan StatusNone Fixed
        Assigned toNone paysan

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code