4 ms·
It is different in other languages FreePascal has the same issue with the warning in divide2 and it also has a noreturn attribute. So can you be tempted to add
by benibela 4y ago
It is different in other languages
FreePascal has the same issue with the warning in divide2 and it also has a noreturn attribute. So can you be tempted to add the attribute and it get rids of the warning. But it is wrong.
In FreePascal noreturn means that the function does not return, i.e. the execution does not leave the scope. An exception would leave the function, so it is not allowed.
Noreturn functions can only have an infinite loop or kill the process