February 04, 2016
On Thursday, 4 February 2016 at 02:06:00 UTC, xtreak wrote:
> Thanks for the reply. But the issue was about knowing the type of lambda in map.

Yes, I was just making sure that I knew why ReturnType!lambda was failing, which is that it is a template and does not have a return type until it is instantiated with arguments.
February 04, 2016
On Thursday, 4 February 2016 at 05:50:05 UTC, tsbockman wrote:
> On Thursday, 4 February 2016 at 02:06:00 UTC, xtreak wrote:
>> On Wednesday, 3 February 2016 at 23:57:12 UTC, Ivan Kazmenko wrote:
>>> [...]
>>
>> Thanks for the reply. But the issue was about knowing the type of lambda in map. Most people won't enter the type of argument in a map. Is there a way to detect the return type will be non void. I don't need to know the type I just wanr to verify its not void. Yes * can be overloaded and can have different types based on the input having the overloaded operator implemented. I just want to check if the return type is not void.
>
> See my PR for a workaround: https://github.com/D-Programming-Language/phobos/pull/3969/files

Thanks a lot for the patch. It will be helpful if you could explain the workaround as I am a newbie in D language.
February 04, 2016
On Thursday, 4 February 2016 at 07:11:44 UTC, xtreak wrote:
> On Thursday, 4 February 2016 at 05:50:05 UTC, tsbockman wrote:
>> See my PR for a workaround: https://github.com/D-Programming-Language/phobos/pull/3969/files
>
> Thanks a lot for the patch. It will be helpful if you could explain the workaround as I am a newbie in D language.

Explanation here: https://github.com/tsbockman/phobos/commit/be7c55fbea7f37987e9f965f968c54b4a3f7342b#commitcomment-15878936
1 2
Next ›   Last »