From: "chris.danx" <spamoff.danx@ntlworld.com>
Subject: Re: worth the hassle?
Date: Tue, 23 Jul 2002 16:15:12 +0100
Date: 2002-07-23T16:15:12+01:00 [thread overview]
Message-ID: <Eqe%8.14162$rn5.1675139@news11-gui.server.ntli.net> (raw)
In-Reply-To: ulm8232w7.fsf@gsfc.nasa.gov
"Stephen Leake" <stephen.a.leake.1@gsfc.nasa.gov> wrote in message
news:ulm8232w7.fsf@gsfc.nasa.gov...
> If Ada seems to be in your way when you want to do something, it's for
> a good reason!
>
> > What is a good way of getting the pointer to the list? 'access
> > doesn't work since list is constant, and I don't want to make the
> > parameter an access type since it's not convienant to declare lists
> > as aliased all the time.
>
> You can take the approach I did in SAL; don't store a pointer to
> the list in the iterators. That makes the iterators "unsafe", but more
> efficient.
They must be safe, so that approach isn't appropriate
> Or, you can take the approach that Grace.Lists does, and add a layer
> of indirection in the List_Type; then you _can_ get an access value to
> the list from an "in" parameter.
Do you mean something like
type a_list_type is ...
type list_type is record
list : a_list_access;
end record;
or
type list_type is private;
...
private
type a_list_type is ...
type list_type is access a_list_type;
?
Where is the grace site?
next prev parent reply other threads:[~2002-07-23 15:15 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-22 16:56 worth the hassle? chris.danx
2002-07-22 17:17 ` Wes Groleau
2002-07-22 17:45 ` chris.danx
2002-07-22 19:05 ` Wes Groleau
2002-07-22 17:56 ` chris.danx
2002-07-22 18:06 ` Stephen Leake
2002-07-22 21:06 ` chris.danx
2002-07-23 12:16 ` chris.danx
2002-07-23 12:36 ` chris.danx
2002-07-23 15:00 ` Stephen Leake
2002-07-23 15:15 ` chris.danx [this message]
2002-07-23 15:36 ` chris.danx
2002-07-23 16:19 ` Peter Hermann
2002-07-23 16:41 ` chris.danx
2002-07-23 17:35 ` Stephen Leake
2002-07-22 17:58 ` Stephen Leake
2002-07-22 18:15 ` Frank J. Lhota
2002-07-22 19:56 ` Stephen Leake
2002-07-23 5:56 ` Kevin Cline
2002-07-22 18:44 ` chris.danx
2002-07-23 5:39 ` Kevin Cline
2002-07-23 15:05 ` Stephen Leake
2002-07-23 18:34 ` Perhaps we keep lists elements private and adjust the elements to fit? Chad R. Meiners
2002-07-23 19:23 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox