T[] some_function(T[] var) {
T[] var2;
double a = 12.34;
string b = "hello";
if(typeof(var).stringof == "double") {
var2 ~= a;
}
if(typeof(var).stringof == "string") {
var2 ~= b;
}
...
}
How can I make something like the following work without "Error:
cannot append type double to type string[]" ?
- type determination dsmith
- Re: type determination Ali Çehreli
- Re: type determination Jacob Carlborg
- Re: type determination dsmith
- Re: type determination Jonathan M Davis
- Re: type determination dsmith
