comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@world.std.com>
Subject: Re: generic formal object parameters of mode 'in out'
Date: 2000/11/06
Date: 2000-11-06T00:00:00+00:00	[thread overview]
Message-ID: <wccitq06ha8.fsf@world.std.com> (raw)
In-Reply-To: 3a06dc1c.259466533@news.rrds.co.uk

steve.folly@rdel.co.uk (Steve Folly) writes:

> While reading the ARM today I noticed it's possible to specify generic
> formal objects of mode 'in out'.
> 
> I was just wondering what use this could have?

Only a little.

> Am I right in thinking that by making Template an 'in out', I don't
> need The_Template.

No.  The visibility rules have nothing to do with the mode.
The fact that you can't see the formals from outside is an
annoyance, but no big deal, and is not affected by 'in' vs
'in out'.

> And, if it is now an 'in out', can I change Template at any time
> outside of the instantiation (or inside it) ?

It's a (view of a) variable, and so can be modified.

- Bob




      parent reply	other threads:[~2000-11-06  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-06  0:00 generic formal object parameters of mode 'in out' Steve Folly
2000-11-06  0:00 ` mark_lundquist
2000-11-06  0:00 ` Robert A Duff [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