Is there a label limit count per function?
I'm talking about labels, which are named code sections that you can use goto to to jump into. Not Label
I'm seeing errors that happen especially when there's a high number of labels in a function
Compilation Failed.
pkg:/source/playlet-text-render-wasm.out.brsLabel/Line Not Found.
(compile error &h0e) in pkg:/source/playlet-text-render-wasm.out.brs 'w2b_b0_11927667'Label/Line Not Found.
The current BrightScript implementation has a limit of 256 labels per function.
Thanks for confirming
I'm not sure what might be affecting this limit downward. The only way to increase the limit would be to come work at Roku. 😀
I will hope that's not going to be the actual only way, but someone could take this feature request and implement it.
Kinda reminds me of https://twitter.com/swaglord__420/status/1377051721655066629?lang=en
I tried my best to work around the label count limitation by going a different approach, but I got hit with a stack overflow (at #55) which is such a low number.
Honestly this is sad for a language being used in 2023