Article View: comp.sys.amiga.tech
Article #3324Re: What's an APTR, BPTR?
From: Deven T. Corzine
Date: Fri, 13 Apr 1990 09:31
Date: Fri, 13 Apr 1990 09:31
25 lines
1577 bytes
1577 bytes
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.
Technical Details
Message-ID:
<DEVEN.90Apr13053249@netserv2.rpi.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!netserv2!devenReferences:
<3421@newton.physics.purdue.edu> <10712@cbmvax.commodore.com> <1990Apr11.103419.29002@bath.ac.uk> <DEVEN.90Apr12051138@netserv2.rpi.edu> <10923@netcom.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <DEVEN.90Apr13053249@netserv2.rpi.edu> Date: 13 Apr 90 09:31:52 GMT References: <3421@newton.physics.purdue.edu> <10712@cbmvax.commodore.com> <1990Apr11.103419.29002@bath.ac.uk> <DEVEN.90Apr12051138@netserv2.rpi.edu> <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