Skip to content

Support for TRAP statement #80

Open

Description

@bsturk

Would be nice to have this.

Activity

  1. bsturk commented on Jan 7, 2025

    @bsturk
    Author

    Is there a way to emulate this in FastBASIC? I'm porting some code and it isn't behaving the same due to the missing TRAP functionality.

  2. dmsc commented on Jan 8, 2025

    @dmsc
    Owner

    Hi!

    FastBasic does not have a TRAP statement because it has a different model for how to react to errors.

    You should use the ERR() function after each I/O operation (or other statement that can generate an error) and react accordingly.

    If you want to post a code snippet I can help you convert to the FastBasic way.

    Have Fun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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