comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Drummond <brian@shapes.demon.co.uk>
Subject: Re: Why doesn't Ada allow user-defined attributes?
Date: Thu, 20 Jul 2017 09:34:52 -0000 (UTC)
Date: 2017-07-20T09:34:52+00:00	[thread overview]
Message-ID: <okptfs$n82$1@dont-email.me> (raw)
In-Reply-To: f8aceb25-018f-4248-bc1b-d3a145108e93@googlegroups.com

On Wed, 19 Jul 2017 17:02:35 -0700, Shark8 wrote:

> While reading up on VHDL I found out about its user-defined attributes
> and got to wondering why Ada doesn't have them. I can see how
> restricting them to those defined in the standard can keep the code
> "clean" and certainly [mostly] uniform... though the allowance of
> implementation-defined attributes undermines the last portion of that
> argument. -- Does anyone know?

What would they be used for?

Apart from Read and Write attributes for streaming objects, which are 
user ... overrideable, rather than defineable.

In VHDL, user defined attributes don't normally affect the design in any 
tangible way, they are normally used to pass information to tools, such 
as synthesis or backend tools, for purposes outside the language's remit 
(such as setting voltage standards on I/O pins).

Offhand I'm not sure I can see similar purposes for extending Ada's 
attributes. 

Got any use cases in mind?

-- Brian


  reply	other threads:[~2017-07-20  9:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-20  0:02 Why doesn't Ada allow user-defined attributes? Shark8
2017-07-20  9:34 ` Brian Drummond [this message]
2017-07-20 16:07   ` Shark8
2017-07-21  4:46     ` Georg Bauhaus
2017-07-21  7:08       ` Dmitry A. Kazakov
2017-07-21 17:11         ` Georg Bauhaus
2017-07-21 19:39           ` Dmitry A. Kazakov
2017-07-22 16:33             ` G.B.
2017-07-22 20:12               ` Dmitry A. Kazakov
2017-07-23  6:41                 ` G.B.
2017-07-23  8:22                   ` Dmitry A. Kazakov
2017-07-24 17:52                     ` G.B.
2017-07-20 18:53 ` Randy Brukardt
2017-07-20 23:58 ` Matt Borchers
2017-07-21  7:14   ` Simon Wright
replies disabled

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