I know about this pitfall now so it isn't a big deal for me anymore. But my main concern is this:
As we all talked about in the "B4A is now free" thread, we want more developers to come to B4X because it is indeed an awesome programming environment. But those developers come with some expectations. One is, and I dare state that as a 100% fact, they will expect locally declared variables to be local, not global. It is like that in all other languages I know about. And I do know quite a lot.
Such quirks could put B4A in a bad light and we don't want that.
There are a few other places where I think B4X falls a bit short, but I will make some more wishes soon.
I really think Erel should implement a compiler warning.