terminology - What's it called when a compiler faces a reference to a thing defined later in the code? -
there's common issue have deal when designing compiler: 1 line of code might refer defined on later line. example:
function f() { return g(5); } function g() { something; }
the first line refers function g
hasn't been defined yet, compiler has keep track of reference g
in current scope. when g
gets defined on next line, compiler can determine previous line referred to.
what called?
i know there's term in compiler design, can't remember it.
it called forward reference.
Comments
Post a Comment