r/programming • • Jan 28 '19

C++ Modules Might Be Dead-on-Arrival

https://vector-of-bool.github.io/2019/01/27/modules-doa.html
210 Upvotes

105 comments sorted by

View all comments

1

u/SatansAlpaca Jan 28 '19

With Swift, every file that is included in the build is passed to the compiler, and one file is named the “current file”. The compiler does a first pass on all the files to extract interfaces without parsing definitions and caches the result of that. It then actually compiles the “current file” to an object file. Seems to me that this could be applicable here too.