5 ms·
"coupled with the preprocessor" is a bit of a cop-out :-). Do you have a concrete example of what typeof would enable? Like a basic implementation of a vector t
by c-cube 5y ago
"coupled with the preprocessor" is a bit of a cop-out :-). Do you have a concrete example of what typeof would enable? Like a basic implementation of a vector type?
- pjmlp 5y agoTrue, it is basically //go: generate, before Go was born. Here is an example, https://codereview.stackexchange.com/questions/101816/generic-vector-implementation-in-c-using-macros https://codereview.stackexchange.com/questions/101816/generi...