Modules, Concatenation, and Better Solutions

Kevin Smith khs4473 at gmail.com
Wed Oct 17 06:51:04 PDT 2012


> Do we log "you need me" only when f is called for the first time?
>

Sorry - that makes no sense.  What I meant was:

    module A {
      console.log("you need me");
      export var x = "x";
    }

    export function f() {
      console.log(A.x);
    }

Do we log "you need me" only when f is called for the first time?

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121017/1e89c275/attachment.html>


More information about the es-discuss mailing list