mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
removed dynamic jump
This commit is contained in:
parent
45256ca4be
commit
60366fc50d
1 changed files with 0 additions and 9 deletions
|
@ -87,20 +87,11 @@ end
|
||||||
|
|
||||||
`goto <ConstantString>` Jumps to a set label
|
`goto <ConstantString>` Jumps to a set label
|
||||||
|
|
||||||
|
|
||||||
`goto <Number>` Jumps to X line
|
|
||||||
Notes:<br>
|
|
||||||
If the number is a constant number, the compiler should optmize it<br>
|
|
||||||
Otherwise if the number is a variable, any registers needed should be saved before the jump<br>
|
|
||||||
If the X line is in another scope a error should be thrown<br>
|
|
||||||
If the X line is in a invalid place(inside an statement) a error should be thrown
|
|
||||||
|
|
||||||
## Drawbacks
|
## Drawbacks
|
||||||
|
|
||||||
Cross thread jumping could be a problem(but it would be very interesting if implemented and used correctly).<br>
|
Cross thread jumping could be a problem(but it would be very interesting if implemented and used correctly).<br>
|
||||||
Lambdas/Functions that are called could bypass the scope boundary without runtime checks.<br>
|
Lambdas/Functions that are called could bypass the scope boundary without runtime checks.<br>
|
||||||
|
|
||||||
|
|
||||||
## Alternatives
|
## Alternatives
|
||||||
|
|
||||||
A break for nested loops
|
A break for nested loops
|
||||||
|
|
Loading…
Add table
Reference in a new issue