Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20563

BASCOM-AVR : Gosub vs. Call a procedure : REPLY

$
0
0
I have been re-reading this earlier thread, and I'm now not sure I have it clear in my mind. Mark said [quote:a529b18aab]as you can see, i can nest a label/return inside the sub but you can not nest subs inside label/return [/quote:a529b18aab] which assume means you can't do this: [code:1:a529b18aab] gosub label1 gosub label2 label1: call dothis() call dothat() return label2: return dothis() end sub dothat() end sub etc end [/code:1:a529b18aab] I have done this lots and lots of times, without any 'apparent' problems. ??

Viewing all articles
Browse latest Browse all 20563

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>