Attribute inference for auto functions?

Timon Gehr timon.gehr at gmx.ch
Tue Apr 16 14:13:17 PDT 2013


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




More information about the Digitalmars-d mailing list