A
Alexander
How can I end a function that is declared 'void'? For other functions
I would simply return, but is it possible to end the function
explicitly, for example under a condition? I could, of course, simply
make the rest of the code only execute under the contrary condition
(which is what I did for the task), or declare the function to be
'bool', and return, but these are both kludges, inelegant options that
avoid the solution of the problem. I don't need it for a particular
task, it just got me interested. Anyone has an answer?
I would simply return, but is it possible to end the function
explicitly, for example under a condition? I could, of course, simply
make the rest of the code only execute under the contrary condition
(which is what I did for the task), or declare the function to be
'bool', and return, but these are both kludges, inelegant options that
avoid the solution of the problem. I don't need it for a particular
task, it just got me interested. Anyone has an answer?