March 08, 2005
Throughout at least two megabytes or more of code written in PHP (which has no macros whatsoever) this is exactly what I do and have instructed the developers I lead to do; I have also seen it commonly done in other PHP projects.

I'm very glad to see this in D, now, should it stay.  I'm afraid I think making the assumption that people won't spell it out (when it's the only way to use such an important debugging tool) is a mistake.

Most important, consider a proxying function, such as a function that executes a database query, some other long/abstracted process, etc. Having the error message/assert come from those line numbers couldn't be more useless.

-[Unknown]


> I do it sometimes. But since the __LINE__ isn't coming from macro expansion,
> I doubt many will write:
> 
>     log(message, __FILE__, __LINE__);
> 
> But we'll see.
1 2 3
Next ›   Last »