News for hackers. Stuff that matters.
Re:C++ Modules Might Be Dead-on-Arrival (2019) by munch117 on Friday December 31, 2021 @06:37AM (#29747069)
That is very easily solved by not using modules for those things that cause issues, or by using a module facade over traditional C++.

For your example, you could make a 'foo' module that pulls in an implementation from a traditional C++ source file, "armv5/foo_impl.h" or "x64/foo_impl.h", using preprocessor #if/#ifdef to choose the right one. Or you could even use a module backend, pulling in the implementation from either "foo_armv5.bmi" or "foo_x64.bmi".

There are no comments on this comment yet.