I wanted a string which must “contain” the name of a member of a struct
. The compiler should check the right spelling (at compile time).
At last I have found a possible reason to use the comma operator…
I wanted a string which must “contain” the name of a member of a struct
. The compiler should check the right spelling (at compile time).
At last I have found a possible reason to use the comma operator…
Reactions: |
So, in C++ there's this (perfect) forwarding thing, because there's a forwarding problem.
Reactions: |
Torvalds, the creator of the Linux kernel.
Reactions: |
In Overloading so much I've forgotten C11 and its _Generic
I've talked about in Type-generic functions (overloading) in C11.
It was a bright sunny day, or maybe not. Then, suddenly, a system started to misbehave.
Reactions: |
I suppose that my average readers know what overloading is, but let me give a quick definition: overloading is a feature which allows to reuse (overload) a function name provided that each signature makes each function distinguishable. According to the signature the compiler can pick the right actual code to execute.
Reactions: |
How do you get the length of a string literal in C?
Reactions: |