Skip to content

bug when dividing with a empty stack #1

@justlucdewit

Description

@justlucdewit

i know its kindof wierd to divide with an empty stack, but what the compiler does should not be happening at all, if you input the code

/@

it will put NaN in the stack 🤔
i'd suggest either printing some sort of error and not putting anything in the stack

what you are currently doing in your code is dividing 0/0 (scince befunge defaults a empty stack to 0) and 0/0 is not possible
afbeelding

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