I don’t think any of the other functions we have used thus far are candidates for the use of “const”. Because their values will change. For example, “getCurrentTry” is a changing value.
Not sure though, lol.
I don’t think any of the other functions we have used thus far are candidates for the use of “const”. Because their values will change. For example, “getCurrentTry” is a changing value.
Not sure though, lol.
The variable MyCurrentTry is a changing value, but I think the logic inside GetCurrentTry isn’t, so I think it is a good candidate. The way I think of it is like this: you will change the variable (ex. MyCurrentTry = 2), but that will happen inside other functions, GetCurrentTry() doesn’t change the value, it only returns it. Therefore it can be a const function.