🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9699

Re: Must casting destroy lvalueness?

#9699
From: John Sambrook
Date: Fri, 31 Oct 1986 17:42
24 lines
1853 bytes
In article <144@cartan.Berkeley.EDU> desj@brahms (David desJardins) writes:
>In article <4038@umcp-cs.UUCP> chris@umcp-cs.UUCP (Chris Torek) writes:
>>In article <55@cartan.Berkeley.EDU> desj@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

Just a small correction.  On the MV series both types of pointers are
32 bits.  It is also true that character pointers have a different 
format than pointers to other types.  Casting from one type to the other
on the MV series requires a conversion.

-- 
John Sambrook                           Work: (206) 545-7433
University of Washington WD-12          Home: (206) 487-0180
Seattle, Washington  98195              UUCP: uw-beaver!uw-nsr!john
Technical Details
Message-ID: <512@uw-nsr.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!nike!sri-spam!sri-unix!hplabs!tektronix!uw-beaver!tikal!sigma!uw-nsr!john
References: <4617@brl-smoke.ARPA> <657@dg_rtp.UUCP> <55@cartan.Berkeley.EDU> <4038@umcp-cs.UUCP> <144@cartan.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!nike!sri-spam!sri-unix!hplabs!tektronix!uw-beaver!tikal!sigma!uw-nsr!john
From: john@uw-nsr.UUCP (John Sambrook)
Newsgroups: net.lang.c
Subject: Re: Must casting destroy lvalueness?
Message-ID: <512@uw-nsr.UUCP>
Date: Fri, 31-Oct-86 12:42:26 EST
Article-I.D.: uw-nsr.512
Posted: Fri Oct 31 12:42:26 1986
Date-Received: Tue, 4-Nov-86 01:11:02 EST
References: <4617@brl-smoke.ARPA> <657@dg_rtp.UUCP> <55@cartan.Berkeley.EDU> <4038@umcp-cs.UUCP> <144@cartan.Berkeley.EDU>
Reply-To: john@uw-nsr.UUCP (John Sambrook 5-7433)
Organization: UW-Bioengineering, Seattle, WA
Lines: 23