Mission impossible

Simen Kjærås simen.kjaras at gmail.com
Wed Apr 11 08:51:52 UTC 2018


On Wednesday, 11 April 2018 at 08:47:12 UTC, Basile B. wrote:
> On Wednesday, 11 April 2018 at 08:36:41 UTC, Shachar Shemesh 
> wrote:
>> struct S {
>>     static void func(T)(uint a, T t) {
>>     }
>>
>>     static void func() {
>>     }
>> }
>>
>> Your mission, Jim, should you choose to accept it, is this:
>>
>> Get a pointer to the version of the function that accepts no 
>> arguments.
>>
>> As always, should you or any of your Force be caught or 
>> killed, the Secretary will disavow any knowledge of your 
>> actions. This disc will self-destruct in ten seconds.
>>
>> Good luck, Jim.
>
> I suppose __traits(getOverloads) doesn't work because of a bug ?

That'd be https://issues.dlang.org/show_bug.cgi?id=16206. Reorder 
the two functions, and it works.

--
   Simen


More information about the Digitalmars-d mailing list