(Adding wood to the impending fire...) When you want to get into that level of abstraction, you should be looking at C++, not C.
Alan "Palm Developer" <[EMAIL PROTECTED]> wrote in message news:105449@palm-dev-forum... > > > > On Tue, 17 Dec 2002, Chris Tutty wrote: > > > > > > True, but if you forget that critical * the code will compile > > and run but not do what you want. I prefer the explicit > > type because it's harder to screw up. Hmm, what would > > be really cool is a pre-processor function to insert the > > type of a variable - then we'd avoid the repeated reference > > you don't like and the dangerous coding I don't like. > > > > Chris Tutty (heading off-topic at full speed). > > > > > #define MEMMOVEP(d, s) MemMove(d, s, sizeof *d) > #define MEMMOVE(d, s) MemMove(d, s, sizeof d) > > :) > > Now if only it could figure out at compile time which variables were pointers, > we could do away with the duplicate macros. > > > Si. > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
