Skip to content

Instantly share code, notes, and snippets.

@sebmarkbage
Created February 29, 2012 19:58
Show Gist options
  • Save sebmarkbage/1943997 to your computer and use it in GitHub Desktop.
Save sebmarkbage/1943997 to your computer and use it in GitHub Desktop.
Module Function Export
module M {
function B(){ return 'B'; };
export this A(){ A = B; return 'A'; };
}
M(); // 'A'
M(); // ?
// If the second call yields 'B' then this should be ok as well:
module M {
var f = function(){};
export this f;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment