User Defined Attributes

Timon Gehr timon.gehr at gmx.ch
Tue Nov 6 12:23:25 PST 2012


On 11/06/2012 06:31 PM, deadalnix wrote:
> 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.

But almost none. It is easy to get right.


More information about the Digitalmars-d-announce mailing list