by kazinator · 2y ago · 0 comments
It is entirely relevant. The boolean type of the language is whatever is the type of (0 < 1).
> Typedefs have their own namespace anyway
Typedefs positively do not have their own namespace.
If you write
#undef getc
{
typedef char getc;
}
you cannot call the getc function in that scope; it is now the typedef.It is true that it's more correct to say "struct names have their own namespace", though I think we can infer what's actually meant here fairly easily.
That is false. If we declare an "enum foo", which is not a struct, then we cannot have a "struct foo" in that scope.