[phobos] datetime review

Simen Kjaeraas simen.kjaras at gmail.com
Sat Oct 9 14:25:25 PDT 2010


Denis <2korden at gmail.com> wrote:

> On Sun, Oct 10, 2010 at 12:54 AM, Simen Kjaeraas  
> <simen.kjaras at gmail.com> wrote:
>> Andrei Alexandrescu <andrei at erdani.com> wrote:
>>>
>>> * "this(string msg, string file = __FILE__, size_t line = __LINE__,
>>> Throwable next = null) nothrow" -> the __FILE__ and __LINE__ are  
>>> useless
>>> (they are yours, not your caller's). You need to make them template
>>> parameters to work, see other places in Phobos. At least that's what I
>>> recall. Walter?
>>
>> You're wrong, they are replaced at call point.
>>
>
> I could swear it worked like Andrei said, but apparently it's not. Oh
> well, we live and learn….

As could I, but I figured I'd check. Live and learn, indeed.

-- 
Simen


More information about the phobos mailing list