Any ideas for lazy evaluation on varaible argument functions?

BCS ao at pathlink.com
Thu Oct 18 20:45:58 PDT 2007


Reply to Darryl,

> I've been studying over the forum archives back from about a year ago,
> spoke with some people on IRC, and played with every strange and
> off-the-wall thoughts I had , and I can't see a solution (without
> macros) to call this oft-used function with less risk of carpal tunnel
> and the slight increase in blood pressure everytime I type it out
> completely.
> 
> So, here I am, telling my tale of sadness, hoping someone might have
> an insight that I have not. Otherwise, I guess I'll be forced to take
> this arg.info(arg.format()) girl to the prom, but I sure hope none of
> my friends see me.
> 


make .info look like this

infoV(A...)(lazy A a){
   this.info(arg.format(a));
}

that (or somthing like it) should work





More information about the Digitalmars-d mailing list