Re:C++20, How Hard Could It Be
by Sharlin on Sunday September 25, 2022 @02:06PM
(#32974121)
I’m not sure C++ has ever used the `_Yield` hack, except for C compatibility? C on the other hand uses it all the time.
[ Parent
| on HN ]
It could be that I'm remembering it from C.
Re:C++20, How Hard Could It Be
by chippiewill on Sunday September 25, 2022 @04:31PM
(#32975839)
It's super common in C because C doesn't have namespaces and templates which means stuff C++ implements as namespaced library classes C has to implement as language keywords.
A good example is atomics. C++11 introduced `std::atomic`, C11 introduced the keyword `_Atomic`