MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1y9isxk/pattern_matching_for_c29/19tgfgobjfb6r/?context=3
r/cpp • u/BarryRevzin • 1d ago
88 comments sorted by
View all comments
Show parent comment
2
The variables are in nested scopes, so they will shadow one another successfully. Your code as presented is OK if both variables were called, say, DD. A more unfortunate problem is that neither can be called D.
View all comments
Show parent comment
2
u/crowbarous 16h ago
The variables are in nested scopes, so they will shadow one another successfully. Your code as presented is OK if both variables were called, say, DD. A more unfortunate problem is that neither can be called D.