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


bug #37818: DUMP changes output base surprisingly

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

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Tue Nov 27 23:24:49 2012, 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 Nov 27 02:18:03 2012, 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 Jun 15 00:29:52 2014paysanOpen/ClosedOpen=>Closed
    Tue Nov 27 23:59:43 2012paysanStatusNone=>Fixed
      Assigned toNone=>paysan

    Back to the top

    Powered by Savane 3.1-cleanup1