Skip to content

.s shows stack backwards from Forth convention #1

Description

@tylerdq

Loving this project, and I'm starting to gather some ideas I'd like to share. First one:

In fsh I put 2 numbers on the stack, then use .s to view it:

fsh> 5 6
fsh[2]> .s
<2> 6 5
fsh[2]> .
6
fsh[1]> .
5

The result returned by .s shows the top of the stack on the left (backwards from Forth convention), which I find confusing. Compare with gforth:

5 6  ok
.s <2> 5 6  ok
. 6  ok
. 5  ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions