A small question default values in tmplate-functions
Uplink_Coder
someemail at someprovider.some
Mon Jan 27 11:56:04 PST 2014
Hello,
Suppose I have the following function
auto veryStableAPI(string parameter,VaraiadicParams...)() {
// do something very slow and stable;
....
}
auto experimentalReplacement(string parameter,VaraidcParams
...)() {
// do the same thing very fast and dangerous
}
is the following
auto veryStableAPI(bool brave=false, string
parameter,VaraiadicParams...) {
static if (!brave)
// do something very slow and stable;
else
// do the same thing very fast and dangerous
}
valid according to spec ?
More information about the Digitalmars-d-learn
mailing list