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

Explicit parameter checking instead of taking First & Last #8

Merged
merged 2 commits into from
Apr 22, 2017

Conversation

0megaD
Copy link
Contributor

@0megaD 0megaD commented Apr 22, 2017

If opcode AND operand are not null we should go into the two-parameter constructor methods.
If opcode is not null but operand is, we go into single parameter constructor method.

If both are null, the app will probably crash. :D (But it already crashes on a whole lot of invalid functions anyway lol)

Could add additional string value checking but bleh.

0megaD added 2 commits April 22, 2017 20:11
If opcode AND operand are not null we should go into the two-parameter constructor methods.
If opcode is not null but operand is, we go into single parameter constructor method.

If both are null, the app will probably crash. :D (But it already crashes on a whole lot of invalid functions anyway lol)
@ioncodes
Copy link
Owner

Thanks!

@ioncodes ioncodes closed this Apr 22, 2017
@ioncodes ioncodes reopened this Apr 22, 2017
@ioncodes
Copy link
Owner

lol

@ioncodes ioncodes merged commit a0be268 into ioncodes:master Apr 22, 2017
@0megaD 0megaD deleted the patch-1 branch April 22, 2017 18:15
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

Successfully merging this pull request may close these issues.

2 participants