3 ms·
In C++, there is a trick to get this behavior called "unity builds", where you include all of your source files into a single file and then invoke the compiler
by senkora 1y ago
In C++, there is a trick to get this behavior called "unity builds", where you include all of your source files into a single file and then invoke the compiler on that file.
Of course, being C++, this subtly changes behavior and must be done carefully. I like this article that explains the ins and outs of using unity builds: https://austinmorlan.com/posts/unity_jumbo_build/ https://austinmorlan.com/posts/unity_jumbo_build/
- WalterBright 1y ago> this subtly changes behavior The D module design ensures that module imports are independent of each other and are independent of the importer.