Are there contemporary programming languages that do NOT have the ability to import functions or values or whatever from other files? Are there situations in which that would be a feature?
sparr @ sparr @lemmy.world Posts 5Comments 113Joined 2 yr. ago
sparr @ sparr @lemmy.world
Posts
5
Comments
113
Joined
2 yr. ago
No, it can't. The compiler can't do anything with content from any file not explicitly passed to it. You're mixing up the compiler and the linker (and the linker has nothing to do with either language, it can link binaries compiled from any language).