Re:Few lesser known tricks, quirks and features of C
by burstmode on Saturday July 01, 2023 @03:00PM
(#36553784)
C++ Metaprogramming is also just a bunch sugarcoated preprocessor macros and it was never someting else.
Re:Few lesser known tricks, quirks and features of C
by idispatch on Saturday July 01, 2023 @05:34PM
(#36555492)
This is plainly not true
Re:Few lesser known tricks, quirks and features of C
by WalterBright on Saturday July 01, 2023 @07:47PM
(#36556547)
The fundamental difference is the C preprocessor is actually a language independent of C. They follow their own grammars, syntax, semantics, symbol tables, etc., and do not communicate with each other.
Re:Few lesser known tricks, quirks and features of C
by cempaka on Saturday July 01, 2023 @05:31PM
(#36555451)
The downvotes make me laugh, I did something pretty similar not long after the _Generic keyword came out and remember getting a pretty icy reception even though I was pretty up front about how painful and crufty it is.
https://abissell.com/2014/01/16/c11s-_generic-keyword-macro-...
Link [2] is the implementation of a vector. Link [3] is a test file implementing a vector of strings.
[1]: https://github.com/jenspots/libwheel
[2]: https://github.com/jenspots/libwheel/blob/main/include/wheel...
[3]: https://github.com/jenspots/libwheel/blob/main/tests/impl/st...