On Mon, Mar 01, 2004 at 12:07:37PM -0500, Thomas David Rivers wrote: > > > > Mark Murray <mark_at_grondar.org> writes: > > > I'd like to commit the following patch. It makes sure that for C > > > and the kernel, NULL is a ((void *)0) > > > > This is not correct, because it makes NULL unusable for function > > pointers; you can assign 0 to a function pointer, but not (void *)0. > > > > DES > > -- > > Dag-Erling Smørgrav - des_at_des.no > > > That assignment seems to work... I thought (void *) was assignable to > any function pointer... (Isn't (void *) assignable to any pointer?) To any _object_ pointer, not to a function pointer. Null pointers are special however. -- <Insert your favourite quote here.> Erik Trulsson ertr1013_at_student.uu.seReceived on Mon Mar 01 2004 - 08:32:34 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:45 UTC