First module

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Fri Jul 7 14:18:35 UTC 2023


1. Compiler reads in source code provided on cli
2. It gets parsed
3. imports get looked up, if not already read in, looks in the 
directories provided by -I based upon the full module + package import 
statement
4. Finish compilation
5. Linker gets passed object files to produce some artifact like an 
executable

Very rough idea of how it works, but will do for what you are asking about.

As long as you compile all at once, assume inlining will work if it 
thinks it should. Modules will not affect it.


More information about the Digitalmars-d-learn mailing list