instant
seems to have no effect when wrapped around definitions
#2270
Labels
Bug
The observed behaviour is incorrect or unexpected.
Describe the bug
instant
, when wrapped around a term that includes some expensivedef
s, seems to have no effect.To Reproduce
In the below scenario, the judge does an expensive computation (naive
fib 10
), then places arock
. The base robot just executesmove; grab
. Since the entire judge program is wrapped ininstant
, this ought to work: the entire judge program including the expensive computation and theplace
command should all execute in a single tick, placing therock
in time for thebase
tograb
it. However, the base crashes with a "nothing here to grab" error, and the rock shows up later.Additional context
Ran into this while preparing #2260. See the discussion here: #2260 (comment)
The text was updated successfully, but these errors were encountered: