Improve interaction between files

0

I'm creating a programming language in C ++, and I plan to make some system to work with multiple files.

In the simple compilation process, the interpreter creates .cpp and .h files and then compiles them together into one executable, and then deletes the files. I intend to add a system that compiles the files to .o , and then deletes the files .cpp and .h . The problem is that #include of C ++ only copies the contents of .h , so if I modify a file and compile it in .o , I'll have to compile all that depend on it. Also, with this system I can not also import a single function or class, as is done in Python using from ... import for example.

My question is, what I said is totally right, and if so, is it possible to dribble it? Remembering that I do not want the programmer to see the files .cpp and .h , unless this is requested.

    
asked by anonymous 31.08.2017 / 00:04

0 answers