Is it possible to refer to a "real-time parent" function's variable from inside of a function of the same array?
<p>I fully realize that this code is kinda strange by the very nature of javascript, but look at it:  </p>

<pre><code>var arr = [
    function () {
    this.b = "hello";
        //or var b = "hello";
        arr[1]();
    },
    function () {
        var str = RealtimeParentFunc.b;
        alert(str);
        // want to get "hello"
    }
];
// want to get "hello"!
arr[0]();
</code></pre>

<p>Maybe it's impossible, but I wonder if there's a way of doing this. How to get a variable of an array's function that called a function in the same array?  </p>

<p><strong>UPDATE</strong><br>
I had to go back to this problem and decided to post an update: of course I can't reference <code>arr[i]</code> from within itself, but I must emphasize that the code above was not supposed to be taken too literally: it was just a demo of what I wanted; but it looks like I can do what I want if I have a small "adjuvant" function that is previously defined in the code:  </p>

<pre><code>var a = function (i, v) {
        return arr[i]()[v];
    };
var arr = [
function () {
    var h = "hello, ";
    var n = a(2, "n");
    return {
        "h": h+n
    }
}, function () {
    var h = a(0, "h");
    alert(h)
}, function () {
    return {
        "n": "your name"
    }
}];
arr[1]();  
</code></pre>
