Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!netserv2!deven From: deven@rpi.edu (Deven T. Corzine) Newsgroups: comp.sys.amiga.tech Subject: Re: What's an APTR, BPTR? Message-ID: Date: 13 Apr 90 09:31:52 GMT References: <3421@newton.physics.purdue.edu> <10712@cbmvax.commodore.com> <1990Apr11.103419.29002@bath.ac.uk> <10923@netcom.UUCP> Distribution: comp.amiga.tech Organization: Rensselaer Polytechnic Institute, Troy, NY Lines: 25 In-Reply-To: mcmahan@netcom.UUCP's message of 13 Apr 90 04:41:15 GMT On 13 Apr 90 04:41:15 GMT, mcmahan@netcom.UUCP (Dave Mc Mahan) said: Dave> The only problem I have run into with this is when doing pointer Dave> arithmatic. Doing things like incrementing a pointer tends to Dave> give different results, depending on if you use APTR, CPTR, or Dave> whatever. I usually just use casts to keep my compiler from Dave> barfing and then make it whatever I want it to be within the Dave> declaration of my program. Yes. As I believe I recall, a (void *) is supposed to increment as a (char *) would. Which is the most sensible. But yes, it's a pain. Deven> *sigh* Dave> double sigh, Agreed. Deven -- Deven T. Corzine Internet: deven@rpi.edu, shadow@pawl.rpi.edu Snail: 2151 12th St. Apt. 4, Troy, NY 12180 Phone: (518) 274-0327 Bitnet: deven@rpitsmts, userfxb6@rpitsmts UUCP: uunet!rpi!deven Simple things should be simple and complex things should be possible.