Hoisting between different files
<p>Is there a way to do functions and variable hoisting between source code present in different files? That is, something like</p>

<pre><code>//Inside firstfile.js
foo === "bar" //should return true
</code></pre>

<p>and</p>

<pre><code>//Inside secondfile.js
function bar() {
    this.foo = "bar";
}
</code></pre>

<p>I guess this is not possible, as different files as parsed and executed separately and in order by most javascript engines, but I do not know for sure.</p>

<p>I don't know even if this is in the spec from ECMA, as the parsing of different files is not really part of the language.</p>
