Article View: comp.lang.misc
Article #3880Re: Pointers
From: Wayne Throop
Date: Thu, 19 Nov 1992 00:34
Date: Thu, 19 Nov 1992 00:34
26 lines
1470 bytes
1470 bytes
: From: hrubin@mentor.cc.purdue.edu (Herman Rubin)
: Message-ID: <Bxw0H0.6EF@mentor.cc.purdue.edu>
::: I do not see how any system of references will enable writing
::: *fill(*descriptor)
::: any faster.
:: How about fill(descriptor) ?
: "This does not compute." The module which produces the contents of
: fill and descriptor is compiled separately from the one that calls it.
: In addition, I specified that there may even be run-time changes, which
: the calling module does not know.
As I have attempted to point out three times now, one can write
fr(dr) instead of *fp(*dp)
because the *declaration* of a reference makes the indirection
implicit during use, while declaration of a pointer does not.
Either notation can have *all* of the properties mentioned
by Herman Rubin above.
This means that reference notations are identically fast, will map
identically to machine instructions, yet are more flexible to change
(since changes can be introduced at the definition site instead of at
every use site), and involve a simpler notation at the use site.
--
Wayne Throop ...!mcnc!dg-rtp!sheol!throopw
Technical Details
Message-ID:
<722143386@sheol.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!psinntp!psinntp!dg-rtp!sheol!throopwReferences:
<Bxw0H0.6EF@mentor.cc.purdue.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!psinntp!psinntp!dg-rtp!sheol!throopw From: throopw@sheol.UUCP (Wayne Throop) Newsgroups: comp.lang.misc Subject: Re: Pointers Message-ID: <722143386@sheol.UUCP> Date: 19 Nov 92 00:34:55 GMT References: <Bxw0H0.6EF@mentor.cc.purdue.edu> Lines: 26