Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!ittvax!dcdwest!sdcsvax!sdcrdcf!hplabs!sri-unix!DBrown@HI-MULTICS.ARPA From: DBrown@HI-MULTICS.ARPA Newsgroups: net.lang.c Subject: Re: pointer -> long conversion Message-ID: <1950@sri-arpa.UUCP> Date: Fri, 13-Jul-84 07:03:00 EDT Article-I.D.: sri-arpa.1950 Posted: Fri Jul 13 07:03:00 1984 Date-Received: Tue, 17-Jul-84 06:22:25 EDT Lines: 10 Well, on a machine with 3-word pointers the operation refrains from sign-extending so as not to accidentally create a long which points somewhere else when converted back to a pointer. Probably the criteria shoul be "do what you must, but try to retain corectness". This implies not sign-extending (so as to avoid a non-"pure" copy, but it also implies that a loss of significance should be visible to the programmer somehow. How you're going to do that I wouldn't know. --dave (unix hack on a 'bun) brown