Re:C++ Modules Are Here to Stay
by AnimalMuppet on Friday January 30, 2026 @11:16AM
(#46826197)
Not for things like public/private, static, virtual. Not for inheritance, either.
[ Parent
| on HN ]
Re:C++ Modules Are Here to Stay
by nextaccountic on Saturday January 31, 2026 @02:16AM
(#46834242)
You add all those things in a single .c or .cpp source, without manual authoring of .h files (this may require language changes, maybe in C30 and C++30 or something)
Then whatever is relevant to the public interface gets generated by the compiler and put in a .h file. This file is not put in the same directory of the .c file to not encourage people to put the .h file in version control.