User Defined Attributes

Walter Bright newshound2 at digitalmars.com
Tue Nov 6 09:14:34 PST 2012


On 11/6/2012 9:00 AM, dennis luehring wrote:
> 1. what if my needs are beyond D?
>
> for example my idl allows me to define a type based query source for parameters
>
> CalculateStuff( TypeX [source="\\placement\(typeA|typeB|typeC)"] my_usage )
>
> this defines the source of assignable objects to this method

Has this capability ever been used?


> 2. what is the reason for stopping right before parameters? (except less coding
> on your side)

It adds significant complexity. I don't think it's a good idea to add 
significant complexity to the language without a compelling use case. It needs 
to be something more than just being nice.



More information about the Digitalmars-d-announce mailing list