Article View: comp.lang.misc
Article #2398Re: Pointers
From: Barry Margolin
Date: Fri, 13 Nov 1992 17:43
Date: Fri, 13 Nov 1992 17:43
18 lines
1313 bytes
1313 bytes
In article <mwm.2mib@contessa.palo-alto.ca.us> mwm@contessa.palo-alto.ca.us (Mike Meyer) writes:
>In <1dujcuINNru4@early-bird.think.com>, barmar@think.com (Barry Margolin) wrote:
>> C function pointers aren't like any other pointers in the language. You
>> can't do pointer arithmetic on them.
>
>Actually, you *can* do arithmetic on them. It's just not very
>portable. I've actually seen this done in production C code.
That's an implementation extension, not part of the language. As such,
there are few constraints on how the extension is provided. If C didn't
use pointer notation for its procedure variable declarations, an
implementation could provide an extensions that allows arithmetic on
procedure variables.
--
Barry Margolin
System Manager, Thinking Machines Corp.
barmar@think.com {uunet,harvard}!think!barmar
Technical Details
Message-ID:
<1e0pguINNgf7@early-bird.think.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!barmarReferences:
<721539019@sheol.UUCP> <1dujcuINNru4@early-bird.think.com> <mwm.2mib@contessa.palo-alto.ca.us>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!barmar From: barmar@think.com (Barry Margolin) Newsgroups: comp.lang.misc Subject: Re: Pointers Date: 13 Nov 1992 17:43:58 GMT Organization: Thinking Machines Corporation, Cambridge MA, USA Lines: 18 Distribution: world Message-ID: <1e0pguINNgf7@early-bird.think.com> References: <721539019@sheol.UUCP> <1dujcuINNru4@early-bird.think.com> <mwm.2mib@contessa.palo-alto.ca.us> NNTP-Posting-Host: telecaster.think.com