Re: Integers on 64-bit machines



Casting pointers to integers is an abomination.

Not really. It's pretty convenient for various tricks such as
eq-hash tables.

The real abomination is casting from integers to pointers.


Stefan

.



Relevant Pages

  • Re: Scheme and libraries -- piggyback on Java?
    ... pointers to be assigned to other pointer types without casting. ... I suppose I did know at one time that void* was convertible without ... I also just realized that I haven't used an actual C compiler since ...
    (comp.lang.scheme)
  • Re: two meanings of a cast
    ... On the one hand 'casting' means: ... For instance when casting function pointers. ... In a cast expression `E`, we're requiring the value of the expression ... `E` to be converted to type `T` using the appropriate conversion machinery. ...
    (comp.lang.c)
  • Re: void pointer arithmetic
    ... > Jeremy Yallop wrote: ... >> I might add it if using extra local variables instead of casting. ... pointers passed to the comparison function are pointers to the objects ...
    (comp.lang.c)
  • Re: unusual behaviour of program under linux....
    ... You're missing the fact that you didn't include malloc.h. ... including the proper header files is a bad thing, and casting malloc ... realizing that you didn't include the right header file. ... wouldn't ints and pointers have the ...
    (comp.unix.programmer)
  • Re: FastCode MM B&V 0.27
    ... I was just a stupid programming error by me. ... Casting the pointers to ... Cardinal before subtracting them is a bad idea because their difference can ...
    (borland.public.delphi.language.basm)