Perform requirements analysis on static argument to use
command
#1301
Labels
C-Low Hanging Fruit
Ideal issue for new contributors.
L-Capability checking
Capability checking determines which capabilities are required by a given piece of code.
L-Commands
Built-in commands (e.g. move, try, if, ...) in the Swarm language.
S-Moderate
The fix or feature would substantially improve user experience.
Z-Feature
A new feature to be added to the game.
From #1287 (comment):
If you write a program like
build {move; use "flerb" forward; move}
it will fail, because the requirements analysis will not figure out that we should automatically equip aflerb
when building the child robot. You would have to explicitly write e.g.build {move; require "flerb"; use "flerb" forward; move}
. We might consider adding something to the requirements analysis which will at least work when use is applied to a statically known device name, as in this example.The text was updated successfully, but these errors were encountered: