comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: anonymous access type
Date: Fri, 6 Mar 2009 08:25:26 -0800 (PST)
Date: 2009-03-06T08:25:26-08:00	[thread overview]
Message-ID: <cbd5056a-f453-4dea-ac88-fe6846951fdd@d19g2000prh.googlegroups.com> (raw)
In-Reply-To: e9b1c30a-eca2-4452-944a-ac12b55067a8@p20g2000yqi.googlegroups.com

On Mar 5, 4:52 pm, Hibou57 (Yannick Duchêne)
<yannick_duch...@yahoo.fr> wrote:
> On 5 mar, 19:35, Adam Beneschan <a...@irvine.com> wrote:
>
>
>
> > I think Ada 79 or some earlier proposal had that.  For named parameter
> > associations, instead of the => syntax we've gotten used to:
>
> >    Proc (Param => Expression);
>
> > the syntax was
>
> >    Proc (Param := Expression);
>
> > for IN parameters;
>
> >    Proc (Param =: Variable);
>
> > for OUT parameters, and
>
> >    Proc (Param :=: Variable);
>
> > for IN OUT parameters.  At least that's what I recall from way back
> > when.  I suppose the language could still allow
>
> >    Proc (Param <=> Variable)
>
> > for IN OUT, but of course <= has another use now so we couldn't use
> > that...
>
> > And I think that in Ada 79, this was only possible for named
> > associations, not positional ones.
>
> > I don't think your idea is a bad one, though, to allow (but not
> > require) IN|OUT|IN OUT keywords in front of actual parameters (named
> > or positional).  The implementation effort for compiler maintainers
> > would be small, I believe.
>
> >                               -- Adam
>
> I think I would prefer the in/out rather than the :/=/:, while this
> latter is clever as well
> Is it possible to transmit it as a proposal ?
> Where can I do it ?

Actually, I sent a proposal to Ada-Comment after I posted, and there's
been some discussion.  I didn't realize that Randy had already brought
up the idea recently in the context of a different issue (AI05-0144),
which arose because OUT and IN OUT parameters for functions are being
seriously discussed; that proposed feature means there's even more
need for a syntax like you mentioned, at least in my opinion (not
everybody agrees).  For future reference, look at
http://www.adaic.com/standards/articles/comment.html

                                -- Adam



      reply	other threads:[~2009-03-06 16:25 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-03 12:25 anonymous access type Maciej Sobczak
2009-03-03 12:40 ` christoph.grein
2009-03-03 12:44   ` christoph.grein
2009-03-03 13:15     ` Maciej Sobczak
2009-03-03 13:43 ` Jean-Pierre Rosen
2009-03-05  0:00   ` Robert A Duff
2009-03-03 21:03 ` sjw
2009-03-03 22:35   ` Adam Beneschan
2009-03-04  5:47     ` christoph.grein
2009-03-04 16:01       ` Robert A Duff
2009-03-05  1:44         ` Randy Brukardt
2009-03-05  8:52           ` christoph.grein
2009-03-05 11:08             ` Hibou57 (Yannick Duchêne)
2009-03-04  8:30   ` Maciej Sobczak
2009-03-04 23:54 ` Robert A Duff
2009-03-05  8:14   ` Ludovic Brenta
2009-03-05 16:27     ` Rob Norris
2009-03-05 17:51       ` Hibou57 (Yannick Duchêne)
2009-03-09 11:40         ` Rob Norris
2009-03-05 20:25       ` sjw
2009-03-06 12:49         ` Stephen Leake
2009-03-05  8:38   ` Hibou57 (Yannick Duchêne)
2009-03-05 15:05     ` Robert A Duff
2009-03-05 15:18       ` Dmitry A. Kazakov
2009-03-05 17:50       ` Hibou57 (Yannick Duchêne)
2009-03-05 18:35         ` Adam Beneschan
2009-03-06  0:52           ` Hibou57 (Yannick Duchêne)
2009-03-06 16:25             ` Adam Beneschan [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