2 ms·
> Making it deliberately useless How do you get "useless"? I literally showed five lines of code above that solve the putative problem with _Generic by levera
by ajross 3y ago
> Making it deliberately useless
How do you get "useless"? I literally showed five lines of code above that solve the putative problem with _Generic by leveraging an idiom we've been using for decades already.
Meh. Use what you like. Clearly it's not C.
- Dylan16807 3y ago> I literally showed five lines of code above that solve the putative problem The top reply to your five lines literally points out why your solution doesn't solve the right problem. The macro you wrote puts the same definition everywhere. It can't even handle the original use case of calling a different function for each number type. If you're suggesting a combination approach of hiding the implementation with a macro until after _Generic gets resolved, I don't think that ordering is possible.