Skip to content

Exception Handling #70

@fafalone

Description

@fafalone

tB could definitely use some basic exception handling. Look at the disassembly of a minimal C try/except block, this seems extremely impractical to do via user code as it needs entries in the PE header directory for exceptions.

But based on how it appears, and correct me if I'm wrong, there's no reason the user code couldn't use very familiar syntax right at home on BASIC...

On Exception GoTo label

There's no compatibility issues as that's never permissible VBx syntax.

Basically what I'm looking to do is protect against things like bad pointers passed by outside callers as in C

__try {
...
} __except(EXCEPTION_EXECUTE_HANDLER) {
...
}

Iirc there are plans to offer more robust error handling with try... But from a syntax view that's major change in both implementation and program structure. This could provide something right at home in the language with an easier back end implementation. Still presumably post 1.0 unless it's dead simple, but hopefully that's on the horizon now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions