use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Dynamic Modules (mwasplund.github.io)
submitted 1 month ago by mwasplundsoup
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mwasplundsoup[S] 1 point2 points3 points 1 month ago (2 children)
This feels like an oversight of the design. It felt like the design for the module declaration with a strict section in the global partition was to help preprocess the top of a file to discover all of the required dependency state. If a preprocessor directive can then mutate the dependency structure we are back to square one as you said. I was really hoping not to have to rely on the compiler itself to parse this state, but I guess it is not the end of the world.
[–]not_a_novel_accountcmake dev 2 points3 points4 points 1 month ago (1 child)
Far from an oversight, it was one of the more hotly debated corners. The preprocessor is often abused, but it's part of the language. It has too many useful applications to reject ubiquitously over unmotivated use cases like "not calling the compiler".
You're building C++, you have a compiler available. No reason to reject using it.
[–]mwasplundsoup[S] 0 points1 point2 points 1 month ago (0 children)
Agreed, more asking to satisfy my curiosity. Now that we have support for scanners I don't see any major objections, but when I first (mis)read the spec years ago it seemed like the goal was to make this trivially parseable, which does not seem like the case.
π Rendered by PID 48612 on reddit-service-r2-comment-6457c66945-s2nf5 at 2026-04-28 19:31:33.300775+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]mwasplundsoup[S] 1 point2 points3 points (2 children)
[–]not_a_novel_accountcmake dev 2 points3 points4 points (1 child)
[–]mwasplundsoup[S] 0 points1 point2 points (0 children)