On Mon, Jun 13, 2011 at 3:59 PM, David Simcha <[email protected]> wrote:

>
>
> On Mon, Jun 13, 2011 at 3:56 PM, Jose Armando Garcia <[email protected]>wrote:
>
>>
>> I can make them free standing template but to use them the client must:
>>
>> logInfo!()("Hello world");
>>
>
> IFTI with parameterless templates works fine:
>
> int doStuff()(int num) {
>     return num + 1;
> }
>
> void main() {
>     doStuff(1);
> }
>
>
BTW, this trick is useful when you need to work around Bug 2972 and
effectively overload a function against a template.
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to