Attribute inference for auto functions?

Dmitry Olshansky dmitry.olsh at gmail.com
Wed Apr 17 10:48:11 PDT 2013


17-Apr-2013 01:13, Timon Gehr пишет:
> On 04/16/2013 07:06 PM, Dmitry Olshansky wrote:
>> 16-Apr-2013 19:22, Andrei Alexandrescu пишет:
>>> There's a discussion that may be of interest to the larger community:
>>> https://github.com/D-Programming-Language/dmd/pull/1877
>>>
>>> Andrei
>>
>> In the same vane - how about attribute inference for "ordinary"
>> functions?
>>
>> I recall that just a month ago I had an interesting case - a normal
>> function inside of a templated struct. The thing is that depending on
>> some parameters (of struct) it could be safe or not. But it's not a
>> template itself and its return type is always bool.
>>
>> In the end I just added an empty CT parameter set making it a template.
>> ...
>
> This should not be an issue any more.
>
> http://d.puremagic.com/issues/show_bug.cgi?id=7511
>
>

So it was a bug after all. Good to see it fixed.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list