M
Mark Rance
Consider this:
typedef struct
{
char a[10];
char b[5];
char c[3];
} foo;
Why can I not execute a statement like:
size_t x = sizeof(foo.b); ??
The only way this works is if I have declared a variable of type foo...yet
the compiler knows quite well what the answer to what I am asking.
This just seems like something the compilers should be able to handle.
-Mark
typedef struct
{
char a[10];
char b[5];
char c[3];
} foo;
Why can I not execute a statement like:
size_t x = sizeof(foo.b); ??
The only way this works is if I have declared a variable of type foo...yet
the compiler knows quite well what the answer to what I am asking.
This just seems like something the compilers should be able to handle.
-Mark