On 1/23/13, Jonathan Wakely <jwakely....@gmail.com> wrote: > On 23 January 2013 09:15, Alec Teal wrote: >> I was fearful of using the word attribute for fear of getting it wrong? >> What >> is "this part" of the compiler called > > I think attributes are handled in the front end and transformed into > something in the compiler's "tree" data structures. > > FWIW I've usually seen this feature referred to as "strong typedefs". > That brings to mind the "strong using" extension G++ had for > namespaces, which (prior to getting standardised as "inline > namespaces") used __attribute__((strong)) so that attribute already > exists in the C++ front end: > http://gcc.gnu.org/onlinedocs/gcc/Namespace-Association.html
Note that there is a proposal before the C++ standard committee on just this topic. Consider its semantics when implementing. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3515.pdf -- Lawrence Crowl