Must casting destroy lvalueness?

David desJardins desj at brahms
Thu Oct 30 11:15:04 AEST 1986


In article <4038 at umcp-cs.UUCP> chris at umcp-cs.UUCP (Chris Torek) writes:
>In article <55 at cartan.Berkeley.EDU> desj at brahms (David desJardins) writes:
>>... the point is that casts of pointers *don't* convert.
>
>Yes they do, and Wayne Throop has to know it:  His machine does
>indeed convert.  `char *' is 48 bits; `int *' is 32 bits.  DG
>machines use word pointers, except when dealing with bytes.

   My apologies; I misspoke.  What I meant to say is that casts of pointers
refer to the same physical locations, although the representations of pointers
of different types may be different.

   -- David desJardins



More information about the Comp.lang.c mailing list