Idiom for debug printf?

BCS ao at pathlink.com
Mon Oct 1 08:17:41 PDT 2007


Reply to Bill,

> BCS wrote:
> 
>> debug(DebugIdent) writef(__FILE__":("~itoa!(__LINE__)~"): message\n");
>> 
> Well, I'm not quite so macho, so I'll just stick with the void
> debugfln(...){}, and say my prayers to the deities of optimization.
> 
> --bb
> 

I would need to use my form regardless (with conditional debugs). Otherwise 
I'd be completely inundated with logging. (ever try reading though 400k loins 
of log? ;)

I have a tendency to do printf debugging and then never remove the printfs 
(I just turn them off)




More information about the Digitalmars-d-learn mailing list