bentley/rgbds — pull request #13 by yenatch (2014-01-07 02:41:37+00:00)
Title: Try to import undefined symbols from other objects

For large projects (500k+ lines) that share labels across dozens of objects, it's convenient to include a list of global labels in each one. This list quickly becomes so long that it loses meaning (and noticeably increases compile time).

Instead, any symbol that's not defined is expected to be imported at the linking stage. If the symbol is never defined, an error is thrown as normal. This lets labels remain local to a file by default, and choosing to export a label doesn't require recompiling the entire project.

I can't come up with any reason to require manual imports in the first place.