[phobos] Would like to add std.log to the review queue

David Simcha dsimcha at gmail.com
Mon Jun 13 13:00:36 PDT 2011


On Mon, Jun 13, 2011 at 3:59 PM, David Simcha <dsimcha at gmail.com> wrote:

>
>
> On Mon, Jun 13, 2011 at 3:56 PM, Jose Armando Garcia <jsancio at gmail.com>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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20110613/8fcdc4eb/attachment.html>


More information about the phobos mailing list