Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!uunet!bony1!richieb From: richieb@bony1.uucp (Richard Bielak) Newsgroups: comp.lang.eiffel Subject: Re: Storing C pointers in Eiffel code Message-ID: <1990Dec5.171420.22935@bony1.uucp> Date: 5 Dec 90 17:14:20 GMT References: <1039@tetrauk.UUCP> Reply-To: richieb@bony1.UUCP (Richard Bielak) Organization: Bank of New York Lines: 29 In article <1039@tetrauk.UUCP> rick@tetrauk.UUCP (Rick Jones) writes: > >In another posting I show some examples of C code interfacing to Eiffel. While >doing this work, I realised that there are problems of portability of Eiffel >code where external C addresses are involved. > [... stuff about using INTEGER type to store addresses and how non-portable that is ...] What about using the BITS type to store address. Then you could have code like this: some_address : BITS my_machines_address_size_in_bits; ^ | this is constant of course ...richie -- +----------------------------------------------------------------------------+ || Richie Bielak (212)-815-3072 | If a thousand people say a foolish | || USENET: richieb@bony.com | thing, it's still a foolish thing. | +----------------------------------------------------------------------------+ Brought to you by Super Global Mega Corp .com