On Tue, 06 Sep 2011 14:37:55 +0300, Timon Gehr wrote:
Workaround:
AddressInfo[] getAddressInfo()(string node){return
getAddressInfo(node,cast(string)null);}
AddressInfo[] getAddressInfo(T...)(string node, string service, T
options);
Thanks, I tried this at first as well, but was turned o
On 09/06/2011 01:01 PM, Vladimir Panteleev wrote:
AddressInfo[] getAddressInfo(T...)(string node, string service = null, T
options)
TypeTuple!() emptyTuple;
AddressInfo[] getAddressInfo(T...)(string node, string service = null, T
options=emptyTuple) {}
Error: cannot implicitly convert expre
AddressInfo[] getAddressInfo(T...)(string node, string service = null, T
options)
DMD complains: "default argument expected for options".
What's the syntax for an empty tuple?
--
Best regards,
Vladimirmailto:vladi...@thecybershadow.net