|
Obviously every method in UnityScript has a separate scope for variables, but blocks don't: From what i found on the wiki, an older version of UnityScript had the usual approach of blocks providing a new declaration space. Thus i'm wondering, is this intentional for some reason or just an oversight?
(comments are locked)
|
|
No, it's always worked that way. It's intentional, because that's how Javascript works.
(comments are locked)
|

I would expect the first error. The second one surprises me and is good to know about...