Include more than once
Posted: Fri Apr 13, 2012 2:22 am
The include command does not allow for a file to be included more than once. This is just wrong.
(I see that you might want to add some sort of limitation so that the program does not end up in an infinite loop, although I think also that should be up to the user. After all, you let infinite loops pass with e.g. the while command. But if you must include an infinite-loop limitation, then do it properly by going through each included file and check that such a loop does not occur.)
Also, it is very much possible to include a file more than once just by putting it in a for or while loop.
(I see that you might want to add some sort of limitation so that the program does not end up in an infinite loop, although I think also that should be up to the user. After all, you let infinite loops pass with e.g. the while command. But if you must include an infinite-loop limitation, then do it properly by going through each included file and check that such a loop does not occur.)
Also, it is very much possible to include a file more than once just by putting it in a for or while loop.