4 ms·
If all of the methodFuncs fail, this will attempt to jump to whatever address happens to be in memory after the last element of methodFuncs. You've forgotten t
by stouset 8y ago
If all of the methodFuncs fail, this will attempt to jump to whatever address happens to be in memory after the last element of methodFuncs. You've forgotten to stop iterating.
- ahoka 8y agoThere is a terminating NULL at the end of the array to stop the iteration.
- jbverschoor 8y agooh my... that never went wrong
- dsamarin 8y agoA terminating null element or logical equivalent in an array is helpful in lots of situations. As one example it simplifies the logic of looking for an element in an array and performing some special operation if it was not found. No bool found variable necessary.
- jbverschoor 8y agoWell yes, but it can easily be removed by accident, and is easy to oversee. See the parent comment
- deleted 8y ago[deleted]