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

Differentiate Program Counter Hitting End from Out of Bounds #22

Open
nixpulvis opened this issue Dec 27, 2015 · 0 comments
Open

Differentiate Program Counter Hitting End from Out of Bounds #22

nixpulvis opened this issue Dec 27, 2015 · 0 comments

Comments

@nixpulvis
Copy link
Owner

Right now we simply return an Option for a program's get method. This allows us to tell when we have an instruction, but it doesn't let us determine if the requested value is out of bounds because we are done with the program, or out of bounds because we did something bad in the interpreter. We should be able to distinguish between these from the perspective of the program's API.

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