Interesting... This is easy to check I guess.
Ioannis
Type: Posts; User: Ioannis; Keyword(s):
Interesting... This is easy to check I guess.
Ioannis
It is common to other languages too like C for example.
Ioannis
Agreed. This is easy to check, but above we stated other cases that are difficult to check.
So a sub-without-return check in whole is not easy to implement. I suppose... Maybe Charles knows better...
If you mean my example, OK, it is a not efficient one but I was trying to show that you can have many Returns from the same sub.
Sure it can be made more compact or efficient, but still. Compiler...
Or the reverse. Have one entry and multiple exits:
gosub test
....
test:
if x=1 then
Added to the above, no one can guarantee you that the software will always run, even with faults in it. MCU's can stop anytime and hardware must protect itself in that case.
Now, regarding Subs,...