vrchat-community / UdonSharp

A compiler for compiling C# to Udon assembly
https://udonsharp.docs.vrchat.com
MIT License
461 stars 50 forks source link

Support GOTO statement #164

Open Happyrobot33 opened 1 month ago

Happyrobot33 commented 1 month ago

U# currently fails to compile if you use a GOTO {labelname} and subsequent {labelname}:. I don't think there is a technology reason this shouldn't work in the Udon VM, so having support for this would be great for breaking out of nested loops

Codel1417 commented 1 month ago

https://xkcd.com/292/