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


bug #37818: DUMP changes output base surprisingly

Submitted by:  None
Submitted on:  Tue 27 Nov 2012 02:18:03 AM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Bernd Paysan <paysan>
Open/Closed: Closed

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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>
Project AdministratorIn charge of this item.
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.



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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 15 Jun 2014 12:29:52 AM UTCpaysanOpen/ClosedOpen=>Closed
    Tue 27 Nov 2012 11:59:43 PM UTCpaysanStatusNone=>Fixed
      Assigned toNone=>paysan

    Back to the top

    Powered by Savane 3.1-cleanup1