Re: [OT] Re: C Question

2002-12-17 Thread Palm Developer
On Tue, 17 Dec 2002, Matt Graham wrote: > Palm Developer wrote: > > On Tue, 17 Dec 2002, Chris Tutty wrote: > > > > #define MEMMOVE(d, s) MemMove(d, s, sizeof d) > > #define MEMMOVE(d,s) MemMove( &d, &s, sizeof(d) ) > this needs the & doesn't it? > indeed it does! one more reason to avoid it ;)

Re: [OT] Re: C Question

2002-12-17 Thread Matt Graham
Palm Developer wrote: On Tue, 17 Dec 2002, Chris Tutty wrote: #define MEMMOVE(d, s) MemMove(d, s, sizeof d) #define MEMMOVE(d,s) MemMove( &d, &s, sizeof(d) ) this needs the & doesn't it? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com

Re: [OT] Re: C Question

2002-12-16 Thread Alan Ingleby
(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 fo

[OT] Re: C Question

2002-12-16 Thread Palm Developer
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 v