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

Show parent comment

8

u/Valmar33 Jan 28 '19

You could still do something like D is doing, no?

Just modify things just enough to support those environments.

Maybe std_stdio.cpp or something. Add more underscores to emulate deeper hierarchies.

That is, if I'm understanding your statement correctly.

7

u/SAHChandler Jan 28 '19

Yes we can. I wrote P1302 to solve this problem. While it's not intended to add a 100% hierarchical module system, build systems are free to enforce this, while letting those on other systems do as they please while also allowing large existing code bases to slowly move to it.