From: m_cubed@my-deja.com
Subject: access-to-constant dispatching params
Date: 2000/05/08
Date: 2000-05-08T00:00:00+00:00 [thread overview]
Message-ID: <8f5t2r$g0k$1@nnrp1.deja.com> (raw)
Ada provides access-to-variable dispatching
parameters.
For example:
procedure Set_Exercise_Mode (
State_Ptr: access State_Type;
Exercise_Mode: in Exercise_Mode_Type);
What it doesn't seem to provide is
access-to-constant dispatching parameters.
It would be useful to be able to ensure that
a query on an object is prevented from
accidentally updating the object. For example,
(in hypothetical syntax):
function Exercise_Mode (
State_Ptr: access constant State_Type)
return Exercise_Mode_Type;
Is there any way of obtaining access-to-constant
dispatching parameters or am I forced to sacrifice
dispatching by using a specific access-to-constant
type:
type RO_Access_State_Type is
access constant State_Type;
function Exercise_Mode (
State_Ptr: RO_Access_State_Type)
return Exercise_Mode_Type;?
Are access-to-constant dispatching parameters
being considered for a future version of Ada?
Sent via Deja.com http://www.deja.com/
Before you buy.
next reply other threads:[~2000-05-08 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-08 0:00 m_cubed [this message]
2000-05-08 0:00 ` access-to-constant dispatching params Andy
2000-05-09 0:00 ` don_harrison
2000-05-08 0:00 ` Tucker Taft
2000-05-09 0:00 ` don_harrison
2000-05-09 0:00 ` Tucker Taft
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox