comp.lang.ada
 help / color / mirror / Atom feed
From: don_harrison@my-deja.com
Subject: Re: access-to-constant dispatching params
Date: 2000/05/09
Date: 2000-05-09T00:00:00+00:00	[thread overview]
Message-ID: <8f8ffp$cbh$1@nnrp1.deja.com> (raw)
In-Reply-To: 3916BA40.3839@nospam.tj

  andt@nospam.tj wrote:
> m_cubed@my-deja.com wrote:
> >
> > Ada provides access-to-variable dispatching
> > parameters.

[..]

> > What it doesn't seem to provide is
> > access-to-constant dispatching parameters.

[..]

> How about using an  in  parameter?
>
>   function Exercise_Mode (
>       State : in State_Type)
>       return Exercise_Mode_Type;
>
> If the code that uses this type are maintaining some sort of
structure,
> list or array of State_Type pointers, one can always dereference:
>
>    Mode := Exercide_Mode (State =>  State_Ptr.all);

Thanks. That almost gives me what I'm after. (I'll have to wait for
Ada 0X to provide access-to-constant dispatching parameters before I
can acheive consistent signatures using access types).


Don Harrison.


Sent via Deja.com http://www.deja.com/
Before you buy.




      reply	other threads:[~2000-05-09  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-08  0:00 access-to-constant dispatching params m_cubed
2000-05-08  0:00 ` Tucker Taft
2000-05-09  0:00   ` don_harrison
2000-05-09  0:00     ` Tucker Taft
2000-05-08  0:00 ` Andy
2000-05-09  0:00   ` don_harrison [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox