passing all writefln arguments
Bill Baxter
dnewsgroup at billbaxter.com
Wed Mar 19 23:53:30 PDT 2008
Saaa wrote:
> I'm trying to make my own little debug_writefln which only prints when I set
> my DEBUGG to true.
>
> void dWritefln(...){
> if(DEBUGG==true) writefln( ? );
> }
>
> What should I place there to make this work, or should I approuch this
> wholly differently?
>
>
Easier if you turn it inside out.
debug(DEBUGG) {
alias writefln dWritefln;
}
else {
void dWritefln(...) {}
}
--bb
More information about the Digitalmars-d-learn
mailing list