Skip to content
This repository was archived by the owner on Jun 27, 2022. It is now read-only.

[Lang Enhancement Proposal] Implement Exception-Handling for invalid pbl-mem.h functions usage #71

Open
Luna-Klatzer opened this issue Dec 12, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request language Core language issue, change or idea

Comments

@Luna-Klatzer
Copy link
Member

Affected area by change:

  • Language Syntax: no
  • Language Library (Parac Base Library): yes
  • Compiler: no
  • Pre-Processor: no
  • Documentation: yers

Short Introduction and Summary
For the moment, errors in allocation and similar were simply caught and the program crashed with a fitting error message. This is simple for small programs, though for larger programs it will become essential to implement basic exceptions inside those memory functions, as well as support generally more advanced trace-backs and handling.

Is your request related to a problem? Please describe.
At the moment, there is no real way to trace back memory errors, except debugging at the core aka. the PBL source code itself. This will cause huge issues when trying to simply program and often waste valuable time finding errors.

Describe the solution you'd like
Implement new Exception that are similar to the error messages already displayed, like:

  • PblInvalidMemoryActionError - "An invalid action was performed on the memory, causing the operation to fail."

Describe alternatives you've considered
None.

Additional context
None.

@Luna-Klatzer Luna-Klatzer added the enhancement New feature or request label Dec 12, 2021
@Luna-Klatzer Luna-Klatzer self-assigned this Dec 12, 2021
@Luna-Klatzer Luna-Klatzer added the language Core language issue, change or idea label Apr 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request language Core language issue, change or idea
Projects
None yet
Development

No branches or pull requests

1 participant