comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Overloading attributes
Date: Mon, 28 Nov 2011 04:06:49 -0800 (PST)
Date: 2011-11-28T04:06:49-08:00	[thread overview]
Message-ID: <a0ca2aaa-5325-487c-9a92-f8adf87877bd@q9g2000yqe.googlegroups.com> (raw)
In-Reply-To: javj7h$ftm$1@speranza.aioe.org

anon wrote on comp.lang.ada:
> Before I get to what "Randy Brukardt" an ARG member said, let me
> give you a little language lesson:

You should not try to teach the Ada language to Jean-Pierre, who is
also an ARG member.

> If a programmer write a program using Ada programmer is author of that
> Implementation aka program. If a programmer write a system (multiple Ada
> programs), the programmer is the author of that Implementation or System.
> And as the Implementation the Standard allows the author to create her/his
> own attributes for that Implementation.

Little language lesson for you: as Peter wrote, the "implementation"
is
the compiler and run-time library, not the "program".  In fact the
"implementation" is not necessarily written in Ada.

> From previous posts by "Randy Brukardt" <ra...@rrsoftware.com>
>                       Oct 28, 2009
>
> Post 1:
>
>> First, a historical question: Was there a proposal for user attributes
>> that was considered for Ada 2005?
>
> Not seriously. It had been rejected for Ada 95, and in general, we didn't
> want to rehash that old ground.
>
> Post 2:
>
>> When it was proposed for Ada 95, I griped about the implementation cost (as
>> noted in my original message). Some other implementers agreed with me. When
>> the scope reduction was applied to the Ada 9x proposal (the original
>> language was just too large for the time, no one would ever have implemented
>> it), things that were just "nice to haves" were removed (even if they were
>> technically sound). This was in that category, so out it went. Same thing
>> happened to conditional expressions and many other useful ideas.
>> The reasoning hasn't changed, so I don't think we'll be revisiting that any
>> time soon.
>
> Really!!!
>
> Now, what Randy forgot was that "conditional expressions" have been added
> to GNAT starting in Ada 2005 and extended in Ada 2012. So, ARG does rehash
> that old ground.

Another little language lesson: GNAT is not Ada.  Randy was talking
about
the Ada language definition, i.e. the ISO standard, i.e. the ARM.  You
are
talking about one particular implementation called GNAT, which Randy
does not
work on (in fact he works on another implementation of Ada).

And conditional expressions are not attributes.

> So, people are looking for "user defined attribute" to be reintroduce
> and added to Ada 2012 since it has not been formally voted on as a
> Standard yet (which will occur between 2012 and 2020). And if not added
> will be strongly requested from the Ada community for Ada 2020 Standard.

There are no user-defined attributes.  There are implementation-
defined
attributes.  Some nut not all attributes (some standard, some
implementation-defined) allow attribute definition clauses.  Sad but
true.

> And others "nice to have" features that were once remove from the Ada 95
> Standard, will be requested or added back in Ada 2020.  Because it is
> Time, some may say

That's off-topic but for the sake of your credibility, could you name
one such "nice to have" feature that has been removed from the Ada 95
Standard? (i.e. one that was present in Ada 83 but absent in Ada 95)

> J-P. Rosen writes:
>> Please stop spreading FUD.

+1

--
Ludovic Brenta.



  parent reply	other threads:[~2011-11-28 12:06 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-26 23:13 Overloading attributes Matt Borchers
2011-11-26 23:24 ` Shark8
2011-11-27  7:38   ` Yannick Duchêne (Hibou57)
2011-11-27  3:36 ` anon
2011-11-27  7:04   ` J-P. Rosen
2011-11-27 20:00     ` anon
2011-11-27 20:34       ` Yannick Duchêne (Hibou57)
2011-11-27 20:50         ` Yannick Duchêne (Hibou57)
2011-11-27 23:10       ` J-P. Rosen
2011-11-28  9:11         ` anon
2011-11-28 10:53           ` Peter C. Chapin
2011-11-29 11:58             ` anon
2011-11-29 12:50               ` Mark Lorenzen
2011-11-30 11:05                 ` anon
2011-11-29 16:16               ` AdaMagica
2011-11-29 17:43                 ` Jeffrey Carter
2011-11-29 23:26                 ` J-P. Rosen
2011-11-30 11:06                   ` anon
2011-11-30 15:52                     ` J-P. Rosen
2011-11-30 17:27                       ` Yannick Duchêne (Hibou57)
2011-11-30 20:45                       ` Pascal Obry
2011-12-01 11:01                       ` Simon Wright
2011-12-02 18:55                       ` anon
2011-12-02 19:34                         ` Ludovic Brenta
2011-12-02 20:02                           ` Yannick Duchêne (Hibou57)
2011-12-03  1:41                           ` Randy Brukardt
2011-11-28 12:06           ` Ludovic Brenta [this message]
2011-11-27  5:11 ` Yannick Duchêne (Hibou57)
2011-11-27 12:57 ` Dmitry A. Kazakov
replies disabled

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