From: Kilgallen@SpamCop.net (Larry Kilgallen)
Subject: Re: "access constant" discriminant
Date: 15 Feb 2003 13:59:43 -0600
Date: 2003-02-15T13:59:43-06:00 [thread overview]
Message-ID: <zwb0dJM87esk@eisner.encompasserve.org> (raw)
In-Reply-To: 3E4E9248.3E71D984@adaworks.com
In article <3E4E9248.3E71D984@adaworks.com>, Richard Riehle <richard@adaworks.com> writes:
> A function may have a an access parameter, which almost has in
> semantics. However, it is possible to modify a component of
> an access parameter. I would like the option of preventing that
> with,
>
> function F (X : access constant parameter-name) return
> some-type;
>
> This would make it illegal for the function to modify the components of
> an access parameter. Without the word constant, one could still modify
> such components, but including it would make absolutely clear, in the
> contract, that such side-effects would be impossible.
Why is it necessary to have the parameter be an access type ?
next prev parent reply other threads:[~2003-02-15 19:59 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-10 8:26 "access constant" discriminant tmoran
2003-02-10 14:43 ` Frank J. Lhota
2003-02-10 18:57 ` tmoran
2003-02-15 19:17 ` Richard Riehle
2003-02-15 19:59 ` Larry Kilgallen [this message]
2003-02-15 23:53 ` Richard Riehle
2003-02-16 1:50 ` Eric G. Miller
2003-02-20 2:23 ` Matthew Heaney
2003-02-20 17:34 ` Stephen Leake
2003-02-21 0:42 ` Matthew Heaney
2003-02-21 10:41 ` Lutz Donnerhacke
2003-02-21 20:21 ` Randy Brukardt
2003-02-23 12:22 ` Simon Wright
2003-02-24 7:06 ` Dale Stanbrough
2003-02-24 18:58 ` Matthew Heaney
2003-02-24 21:05 ` Randy Brukardt
2003-02-25 14:15 ` Frank J. Lhota
2003-02-26 1:05 ` Randy Brukardt
2003-02-24 16:03 ` Matthew Heaney
2003-02-21 15:03 ` Hyman Rosen
2003-02-21 20:09 ` Randy Brukardt
2003-02-21 21:33 ` Matthew Heaney
2003-02-21 20:07 ` Randy Brukardt
2003-02-24 19:11 ` Matthew Heaney
2003-02-24 21:17 ` Randy Brukardt
2003-02-25 17:49 ` Richard Riehle
2003-02-20 2:23 ` Matthew Heaney
2003-02-20 2:20 ` Matthew Heaney
2003-02-10 19:26 ` Robert A Duff
2003-02-10 22:27 ` Rod Chapman
2003-02-11 2:00 ` Jeffrey Carter
2003-02-20 2:28 ` Matthew Heaney
2003-02-20 9:45 ` Lutz Donnerhacke
2003-02-20 2:17 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox