array index out of bounds
#5

I've had this topic open for about half an hour now. I am still trying to figure out why someone advised you to use an enum for this. Constants take up less code and are a lot easier to write out. Enums on the other hand need writing and assigning in two different pieces of code and another variable so it clogs up your code.

I would go against this advice to use an enum and just resort to constants so that your code is easier to read and maintain.
Reply


Messages In This Thread
array index out of bounds - by Pawnify - 04.10.2014, 12:20
Re: array index out of bounds - by Pawnify - 04.10.2014, 13:41
Re: array index out of bounds - by ATomas - 04.10.2014, 13:45
Re: array index out of bounds - by Pawnify - 04.10.2014, 13:52
Re: array index out of bounds - by mamorunl - 04.10.2014, 14:20
Re: array index out of bounds - by ATomas - 04.10.2014, 18:34

Forum Jump:


Users browsing this thread: 1 Guest(s)