Re: [NtDev] Re: Silly question on IA64

Sorry, I disagree with your assertion that only a pointer variable
should hold a pointer. I am continually doing pointer arithmetic, and I
have to cast a pointer into what works, typically a ULONG.
Interestingly, the macro CONTAINING_RECORD64 does arithmetic on
ULONGLONG, which is not a pointer type. You may say Microsoft ought to
have defined a ULONGLONG_PTR type to kept things pure, but I feel doing
so or not doing so is a matter of taste.

That said, in product code where I used ULONG for pointer values, I
always appended a comment that the technique was not
64-bit-address-safe. Matters of taste aside, it’s wise to leave a
warning.


James Antognini
IBM Watson Research


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com