Re: The void** pointer breaking symmetry?



On Sat, 06 May 2006 13:21:21 -0400, Eric Sosman
<esosman@xxxxxxxxxxxxxxxxxxx> wrote:
Even the cast will not save you. Just as numbers come in
different flavors, pointers come in different flavors. Just as
you cannot set a number to zero without knowing its type, you
cannot set a pointer to NULL without knowing its type.

if i know the *size* i can set the number to zero
.



Relevant Pages

  • Re: int or bool?
    ... The idea of zero being false is much more natural, also, since it is often ... used when evaluating pointers (esp. ... A poiinter is essentially an unsigned integer value, ... Hiding that implied condition ...
    (comp.lang.cpp)
  • Re: Why does rewind() ignore errors?
    ... promise that memsetting any scalar to zero on their implementations ... Could anyone name actual architectures where this is not true? ... often valid reasons to use something other than all-bits-zero for null ... pointers were represented as 1; since the system trapped on attempts ...
    (comp.std.c)
  • Re: 100k X 100k data processing summary
    ... The cast is worse than useless. ... Certainly during debugging it makes perfect sense to zero a new ... this need not be suitable for pointers. ... for float * to the memory block? ...
    (comp.lang.c)
  • Re: Assigned and FreeAndNil
    ... You confuse Variants and pointers? ... just replying to your generic use of the words nil and NULL. ... I associate NULL with C, and there it's usually zero, eventually casted into an pointer. ... Similar conditions exists with method pointers, consisting of an object reference and a method reference. ...
    (borland.public.delphi.non-technical)
  • Re: Pointer to int, implicit conversion
    ... Conditionals do not return false; ... An expression can be zero ... Pointers do not have an arithmetic ... but the maintenance programmer may not do so. ...
    (comp.lang.c)