Moving towards D2 2.061 (and D1 1.076)

Max Samukha maxsamukha at gmail.com
Mon Dec 10 15:19:40 PST 2012


On Monday, 10 December 2012 at 22:56:45 UTC, Walter Bright wrote:
> On 12/10/2012 2:20 PM, Max Samukha wrote:
>> On Monday, 10 December 2012 at 22:15:09 UTC, Walter Bright 
>> wrote:
>>> On 12/10/2012 1:57 PM, Adam D. Ruppe wrote:
>>>> On Monday, 10 December 2012 at 21:50:47 UTC, Walter Bright 
>>>> wrote:
>>>>> Why? (It's being heavily used by some people.)
>>>>
>>>> I'm *really* looking forward to UDAs in the next release. 
>>>> Even if the syntax
>>>> changes in 2.62, I'd still like to have it in 2.61 just 
>>>> because there's so many
>>>> things I can do with it.
>>>
>>> The syntax will be:
>>>
>>>   @(attributes)
>>>
>>> and:
>>>
>>>   @identifier
>>>
>>> although the latter isn't implemented yet.
>>
>> So @identifier(args) and @identifier!(args) will require 
>> parens?
>
> Good question. I think it shouldn't.

Probably it should. Single parametrized attributes (in the form 
of templates or CTFE constructors) are very likely to occur as 
often (if not more often) as parameterless (as they do in C#, for 
example).



More information about the Digitalmars-d mailing list