2 bool optional params

spir denis.spir at gmail.com
Tue Nov 9 23:55:26 PST 2010


Hello,

Is there a way for a func to hold 2 optional params of the same type?
	void f(int p, bool b1=false, bool b2=false) {
	    writefln("p=%s b1=%s b2=%s", p,b1,b2);
	 }
Or is there a workaroud?

Denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com



More information about the Digitalmars-d-learn mailing list