
On Fri, Apr 27, 2012 at 12:36 AM, Julien Nitard <julien.nitard@m4tp.org> wrote:
C++11 already provides attributes. This could be made reflectable, so attributes could be used by libraries and not just compilers.
Yes, C++11's generalized attributes is one of the options I've been looking into for this puspose.
C++11 Attributes are not supposed to change the meaning of the program. The program should still work if the compiler doesn't support them. They may provide optimization hints or info to your gui but can't be used to produce effects.
This is one of the reasons (together with the fact that attributes are part of the declaration and cannot be decoupled from it) why the annotations are still an unresolved issue. Since using attributes for this purpose would require some changes to their specification. BR, Matus