Stupid question - is the following form of (Python-ish) import possible (from the grammar it doesn't look like it):
<script type="harmony"> import Math; // Math module declared above alert("2π = " + Math.sum(pi, pi)); </script> Or is it the case that with a module {...} declaration the module is immediately accessible in the scope it was declared in - and no import required if module.function syntax is used: <script type="harmony"> // Math module declared above - no import needed alert("2π = " + Math.sum(pi, pi)); </script> -- _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss