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
Labels
Affected area by change:
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.
The text was updated successfully, but these errors were encountered: