Constrain dragging local variables to parent scope #133

Closed
dethe opened this Issue Feb 6, 2012 · 2 comments

2 participants

@dethe
Waterbear member

Currently you can drag local variables to any context, which can cause all sorts of bugs. Create a scope concept for Waterbear so they can only be dragged where they have a valid scope.

Also detect local variables are added to a child block, which is subsequently repositioned to make the local variable be out of scope.

@TechplexEngineer
Waterbear member

In the process of solving the above issue, it might be worthwhile to look at ways that other block might need something like this.

For example, the break statement can only be within a loop block.

@dethe
Waterbear member

Fixed as part of #239

@dethe dethe closed this Jun 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment