Evaluating __FILE__ and __LINE__ of caller?

H. S. Teoh hsteoh at quickfur.ath.cx
Sat Mar 3 13:37:05 PST 2012


On Sat, Mar 03, 2012 at 03:52:55PM +0100, Andrej Mitrovic wrote:
> On 3/3/12, bioinfornatics <bioinfornatics at fedoraproject.org> wrote:
> > I think __LINE__ is size_t not int
> 
> I'd love to see a 2_147_483_648 line source file! :D

It *could* happen if the source file was auto-generated... and the
autogenerator was broken. :P

Of course, with D's templates, CTFE, and compile-time introspection
capabilities, I can't imagine when autogeneration would actually be
required, but we're talking about hypotheticals here.


T

-- 
Debian GNU/Linux: Cray on your desktop.


More information about the Digitalmars-d-learn mailing list