[phobos] datetime review

Denis 2korden at gmail.com
Sat Oct 9 14:08:46 PDT 2010


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….


More information about the phobos mailing list