D
DaJones
Im new to C++, comming over from Delphi, and one thing done in Delphi a lot
is to define a pointer type like this..
type
TFoo ..... ;
PFoo = ^PFoo;
TFoo is a type, and PFoo is a pointer to a TFoo.
Or in C++
struct Foo .......;
typedef Foo* PFoo;
I've never actual seen this done in C++ much if at all. And I'm wondering if
it's just bad style, or wasted effort.. or what?
I have to be honest and say I find C++ pointer syntax a bit messy, and
figured doing this would clean it up a bit, but then it doesnt seem to be
somthing anyone does, and I'm wondering why.
thanks,
is to define a pointer type like this..
type
TFoo ..... ;
PFoo = ^PFoo;
TFoo is a type, and PFoo is a pointer to a TFoo.
Or in C++
struct Foo .......;
typedef Foo* PFoo;
I've never actual seen this done in C++ much if at all. And I'm wondering if
it's just bad style, or wasted effort.. or what?
I have to be honest and say I find C++ pointer syntax a bit messy, and
figured doing this would clean it up a bit, but then it doesnt seem to be
somthing anyone does, and I'm wondering why.
thanks,