Modular coding

I’ve been trying to figure out how to use c++ modules in my code for quite some time. Has anyone figured out if this is possible?

Given that C++ Modules were created for C++20, which is still pending ratification, and GCC still does not have any modules support in progress, no, you cannot use them.


As far as I know, vex code uses clang which has an implementation pushed out with clang 11. That’s probably more recent then what vex has installed, so you’ll need to figure out how to update it. You’ll also need to mess around with the compiler flags, but I think you should be able to set it to work.

I’m programming in vexcode, but I’m able to switch if need be.