TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #24994 18
Question to Module Users: How Do You Use Partitions?

Quick question for those who currently use modules with partitions.

That is, for a module like the one below (our file Core/\_Module.ixx):

export module Core;

export import :Attach;
export import :Base;
export import :Container;
export import :Diagram;
export import :Interfaces;
export import :Transaction;
export import :View;

How did you implement your code?

What we did:

We have done it as I've described in my blog posting "How a Module Should Look", which is for example for our file Core/Transaction/FinalizerDock.cpp:

module Core;
import :Transaction;
...

which contains function definitions for declarations in the partition Core/Transaction/Transaction.ixx:

export module Core:Transaction;
...

Please tell me what you did. I'm really curious.

Thanks in advance for the responses!

https://redd.it/1snrk4q
@r_cpp
GitHub cadifra/code/Core/_Module.ixx at 2026.1 · cadifra/cadifra Cadifra UML Editor. Contribute to cadifra/cadifra development by creating an account on GitHub.
More from @r_cpp
  1. Oct 6, 2026operator<>: A Dream of Higher-order Metaprogramming Parity https://www.elbeno.com/blog/?p=…
  2. Oct 6, 2026University of Waterloo user study on understanding CMake changes Hi everyone, I’m Mattie N…
  3. Oct 6, 2026Try to Implement Reflection Annotations in C++20 https://typecombinator.github.io/en/posts…
  4. Oct 5, 2026New C++ Conference Videos Released This Month - September 2026 (Updated To Include Videos…
  5. Oct 5, 2026What’s New for C++ Developers in Visual Studio 2026 (18.7 – 18.10) https://devblogs.micros…
  6. Oct 5, 2026Notes on dllexport and dllimport https://www.hanshq.net/dllexport.html https://redd.it/1wy…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →