removed dynamic jump

This commit is contained in:
rafa_br34 2022-02-06 20:51:00 -03:00 committed by GitHub
parent 45256ca4be
commit 60366fc50d
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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