S
Steven T. Hatton
I just read something interesting in one of the PDFs located here:
http://www.cs.wustl.edu/~schmidt/C++/ Sorry, I don't recall which file it
was, and I'm too lazy to dig it up again It says that the compiler is
obligated to arrange the memory of this class in declaration order:
class InOrder{
public:
int a;
int b;
int c;
};
But a compiler is free to rearrange this:
class AnyOrder{
public: int a;
public: int b;
public: int c;
};
Anybody know about this?
http://www.cs.wustl.edu/~schmidt/C++/ Sorry, I don't recall which file it
was, and I'm too lazy to dig it up again It says that the compiler is
obligated to arrange the memory of this class in declaration order:
class InOrder{
public:
int a;
int b;
int c;
};
But a compiler is free to rearrange this:
class AnyOrder{
public: int a;
public: int b;
public: int c;
};
Anybody know about this?