Parsing allowed convenience in simple modules

2011-01-03 Thread John J. Barton
In http://wiki.ecmascript.org/doku.php?id=strawman:simple_modules it says: Module declarations are only allowed at the top level of a script or module, but for convenience, they can nest within top-level blocks, and are hoisted to be in scope for the entire containing script or module. Can

Re: Parsing allowed convenience in simple modules

2011-01-03 Thread David Herman
Hi John, Module declarations are only allowed at the top level of a script or module, but for convenience, they can nest within top-level blocks, and are hoisted to be in scope for the entire containing script or module. Can someone explain what this sentence means? To me it says: