title: Accessing variables trapped by closure
body: <p>I was wondering if there is any way to access variables trapped by closure in a function from outside the function; e.g. if I have:</p>
  
  <pre><code>
  A = function(b) {
      var c = function() {//some code using b};
      foo: function() {
          //do things with c;
      }
  }
  </code></pre>
  
  <p>is there any way to get access to <code>c</code> in an instance of <code>A</code>.  Something like:</p>
  
  <pre><code>
  var a_inst = new A(123);
  var my_c = somejavascriptmagic(a_inst);
  </code></pre>