Global goto labels | Sololearn: Learn to code for FREE!

0

Global goto labels

How can I declare a global goto label to do unconditional jumps between methods?

6/22/2020 1:46:12 AM

Darp5756

1 Answer

New Answer

0

As I understand it, labels are locally scoped (read: within functions/methods). Not sure what needs or why you want to use `goto` in a language like C#, while even in C or C++ they are not preferable except for rare occasions, and with extra care in writing, or else it can be quite messy.