[omniORB] OmniORBpy & TypeDefs
Simon Wright
simon@pogner.demon.co.uk
Tue, 22 Aug 2000 20:12:56 +0100
> From: Stefan Seefeld <seefelds@MAGELLAN.UMontreal.CA>
> what is the difference of this declaration compared to one without
> the typedef ? I'v seen this kind of declaration in C source code
> but always thought it was a C idiosyncrasy, i.e. bound to the
> semantics of the C language. I never found any use for it in C++
> anyways...
Well, you wouldn't, because in C++ if you say
struct thing {
..
};
you can declare
thing t;
whereas in C you have to say
struct thing t;
but if in C you had said
typedef struct thing {
..
} THING;
you would have been able (still in C) to say
THING t;
HTH
-Simon