module exports

Kam Kasravi kamkasravi at yahoo.com
Sun Jul 10 12:24:42 PDT 2011


Hi Dave:

According to the module grammar, the following is valid:

691module car {
function startCar() {} module engine { function start() {} } export {start:startCar} from engine;
} 

It seems like there would be issues with exporting module elements after the module has been defined.
Also, what is the behavior of aliasing over existing Identifiers? Would the compiler fail or would behavior 
be the 'last' Identifier wins?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110710/45303f69/attachment.html>


More information about the es-discuss mailing list