User Defined Attributes

deadalnix deadalnix at gmail.com
Tue Nov 6 09:31:13 PST 2012


Le 06/11/2012 18:14, Walter Bright a écrit :
> 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.
>

It remove complexity in the sens it remove special cases.

It indeed add complexity for the compiler.


More information about the Digitalmars-d-announce mailing list