[OT] Which IDE / Editor do you use?

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Sun Sep 15 03:40:36 PDT 2013


On Sun, 15 Sep 2013 12:08:41 +0200
Jacob Carlborg <doob at me.com> wrote:

> On 2013-09-15 02:09, Nick Sabalausky wrote:
> 
> > Assert? That doesn't let you trace the flow. I use this:
> >
> > void trace(string file=__FILE__, size_t line=__LINE__)(string
> > msg="trace") {
> >          writefln("%s(%s): %s", file, line, msg);
> >          stdout.flush();
> > }
> 
> If you use runtime arguments you'll avoid template bloat:
> 
> void trace(string msg="trace", string file=__FILE__, size_t
> line=__LINE__)
> 

Cool, I didn't know __FILE__/__LINE__ worked as default runtime args.
IIRC, they didn't used to (but maybe that was just in D1 where they
didn't work as default template args either).



More information about the Digitalmars-d mailing list