Private default arguments?

bearophile bearophileHUGS at lycos.com
Fri Dec 28 06:10:00 PST 2012


Nick Treleaven:

> The feature might be useful for things like logging:
>
> void log(T...)(T args, private string file = __FILE__,
> 	private size_t line = __LINE__);

I see, and I understand. I find it a little funny that I suggest 
a feature for recursive functions, and the first proposal for 
alternative usage is for logging :o)

Bye,
bearophile


More information about the Digitalmars-d mailing list