Sub vs gosub

If doesn't fit into any other category ....
Post Reply
Stuart
Posts: 126
Joined: Fri Feb 19, 2021 7:46 pm
Has thanked: 5 times
Been thanked: 20 times

Sub vs gosub

Post by Stuart »

It seems that sub is a much better option in principal (call by reference parameters etc.) than gosub. But what is the cost? Is there a time when gosub is best?
User avatar
cicciocb
Site Admin
Posts: 1899
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1269 times
Contact:

Re: Sub vs gosub

Post by cicciocb »

Both are equivalents, gosub is the mandatory choice for event related routines.
Post Reply