User Defined Attributes

Jacob Carlborg doob at me.com
Thu Nov 8 04:42:37 PST 2012


On 2012-11-08 10:08, Max Samukha wrote:

> Could you explain why it is impossible without complicating the current
> state of things? I gave it a quick try and it seems to work reasonably
> well (a proper implementation will be more involved due to compiler bugs
> and language issues irrelevant to this discussion):

I just see no point in allowing random structs and classes acting like 
attributes.

Suddenly someone starts to use your struct as an attribute without you 
having any intention of it acting like an attribute and you don't know 
about it.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list