Can you get this to work in Xcode 11, c++20?
// file a.cppm (also tried naming it a.cpp or a.cc)
export module a;
int x;
// file b.cpp
import a; // ERROR: Module 'a' not found.
int y;
y = x;
using clang c++2a I have tried everything and I have found no answer clear enough for me to understand. clang c++20 does not fully yet support modules according to its own: https://clang.llvm.org/cxx_status.html, but in another place https://clang.llvm.org/docs/Modules.html they state:
At present, there is no C or C++ syntax for import declarations. Clang will track the modules proposal in the C++ committee. See the section Includes as imports to see how modules get imported today...
... and hereafter, in the same doc, follows an explanation on how to use #include with modules "TODAY" that I can also not get working.
others also/explicitly relate that you can use modules with clang, eg. and according to this source, as of April 2019: https://www.phoronix.com/scan.php?page=news_item&px=Clang-Cpp20-Modules-Switch.
I'm sure that the intersection of clang ∩ c++20 modules ∩ Xcode is sufficiently big for there to tell exactly HOW (because I for one am convinced that it is possible) to implement the above example.
ps. I asked a similar question some time back c++20 modules (experimenting with Xcode 11). the answers there were little scarce and I'm asking/trying this again with new references.