Re: Template alias parameter does not accept functions

2013-02-27 Thread Nick Treleaven
On 27/02/2013 18:06, Dicebot wrote: Ye, lambda litteral issue is different one. OK. My code example: http://dpaste.1azy.net/b06370ea The problem may be related to optional parentheses and stringof, and may be a compiler bug. You can pass function names as a template alias parameter: imp

Re: Template alias parameter does not accept functions

2013-02-27 Thread Dicebot
Fuck. Optional. Parens. Thank you. I have tried some other code than .stringof but guess it invoked Symbols somewhere silently, too.

Re: Template alias parameter does not accept functions

2013-02-27 Thread Dicebot
Ye, lambda litteral issue is different one. My code example: http://dpaste.1azy.net/b06370ea

Re: Template alias parameter does not accept functions

2013-02-27 Thread Nick Treleaven
On 27/02/2013 17:38, Nick Treleaven wrote: On 27/02/2013 15:20, Dicebot wrote: Looking here: http://dlang.org/template.html#TemplateAliasParameter There are no function symbols in the list. And quick check that it won't compile. Two questions arise: a) Why so? b) Is there a workaround? Actua

Re: Template alias parameter does not accept functions

2013-02-27 Thread Nick Treleaven
On 27/02/2013 15:20, Dicebot wrote: Looking here: http://dlang.org/template.html#TemplateAliasParameter There are no function symbols in the list. And quick check that it won't compile. Two questions arise: a) Why so? b) Is there a workaround? This has sometimes come up in the NG, with some s

Re: Template alias parameter does not accept functions

2013-02-27 Thread Dicebot
Actually it looks like a somewhat broken behavior as it works for parameter-less functions.