comp.lang.ada
 help / color / mirror / Atom feed
From: anon@att.net
Subject: Re: Overloading attributes
Date: Mon, 28 Nov 2011 09:11:14 +0000 (UTC)
Date: 2011-11-28T09:11:14+00:00	[thread overview]
Message-ID: <javj7h$ftm$1@speranza.aioe.org> (raw)
In-Reply-To: jaug0j$ph5$1@dont-email.me

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3520 bytes --]


Before I get to what "Randy Brukardt" an ARG member said, let me 
give you a little language lesson:

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.




From previous posts by "Randy Brukardt" <randy@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. 

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.

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

The problem is no Standard should allow the removal any feature from 
any updated Standard of a language, only allow some features to be 
optional for the author of the compiler. And if the compiler is 
constructed right it should be as easy as added addition library 
packages.

In <jaug0j$ph5$1@dont-email.me>, "J-P. Rosen" <rosen@adalog.fr> writes:
>Le 27/11/2011 21:00, anon@att.net a �crit :
>> Which means that Ada can allow a programmer to create "Representation 
>> Attributes" aka "Attributes" with some limitations if the Standard
>> or the Implementation allows it.
>
>Quoting from you own message:
>> An attribute_designator is allowed in an attribute_definition_clause only
>> if this International Standard explicitly allows it, or for an
>> implementation-defined attribute if the implementation allows it.  Each
>> specifiable attribute constitutes an aspect of representation.
>Which is perfectly clear: the implementation can allow pretty much
>anything /for its own implementation defined attributes/, but standard
>attributes can be defined only when explicitely allowed by the standard
>- and those are correctly implemented by GNAT. In no case can the
>/programmer/ define attributes.
>
>Please stop spreading FUD.
>-- 
>---------------------------------------------------------
>           J-P. Rosen (rosen@adalog.fr)
>Adalog a d�m�nag� / Adalog has moved:
>2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
>Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00




  reply	other threads:[~2011-11-28  9:12 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 [this message]
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
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