From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Kleck To: Per Bothner Cc: Jim Kleck , gdb@sources.redhat.com, insight@sources.redhat.com Subject: Re: Register group proposal Date: Tue, 27 Feb 2001 13:44:00 -0000 Message-id: <3A9C201B.345097FA@netergynet.com> References: <17B78BDF120BD411B70100500422FC6309E214@IIS000> <200102242351.f1ONpp704661@rtl.cygnus.com> <3A9B0E90.D3D920EC@cygnus.com> <3A9BF2AF.1BDB5EF7@netergynet.com> X-SW-Source: 2001-q1/msg00247.html Per Bothner wrote: Jim Kleck writes: > An alternative I have not seen discussed is to have "typedef void * blah" > as the public interface (then the implementation would need to cast > the object to the internal representation before operating on it). Then we lose the ability of the compiler to catch type errors. --         --Per Bothner per@bothner.com   http://www.bothner.com/~per/ Good point. I guess that leaves:    struct blah;    typedef struct blah *T_BLAH; which preserves the type errors and simplifies the declaration of objects of the desired type:    T_BLAH this_blah; vs.    struct blah *this_blah; JimK Â