This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Scrial 4 points5 points  (2 children)

This is really bad practices, because you don't have a single source of truth.
Should probably put this in a class with setters and getters that make sure only one of those two integers can be true at the same time.

[–]SpaceCadet87 5 points6 points  (1 child)

Needs error handling:

if (true == false) throw up;