Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for reporting errors when a function can fail #53

Open
colinbdclark opened this issue Sep 28, 2022 · 1 comment
Open

Add support for reporting errors when a function can fail #53

colinbdclark opened this issue Sep 28, 2022 · 1 comment

Comments

@colinbdclark
Copy link
Contributor

Some functions in Signaletic can fail for various reasons—user error such as an out-of-bounds index, resource limitations such as a lack of memory, etc. We should implement a means for informing callers when an error occurred.

There are several different strategies used in C, but my preference is for an error or result status object being specified by the caller as the last argument in to a function that can fail.

colinbdclark added a commit to colinbdclark/signaletic that referenced this issue Sep 28, 2022
…ure.

Implements an (untested) List object that can be used for evaluating groups of Signals.
@colinbdclark
Copy link
Contributor Author

The most significant place where the Status API needs to be implemented now in Signaletic is the memory allocator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant