T... args!

Salih Dincer salihdb at hotmail.com
Wed Dec 8 23:43:48 UTC 2021


Hi all,

Is this not a contradiction? : and 3.1415 aren't string:

```d
void foo(string...)(string args) {
   foreach(ref str; args) {
     str.writeln('\t', typeof(str).stringof);
   }
}

foo("Pi", "number", ':', 3.1415); /*
Pi		string
number	string
:		char
3,1415	double
//*/
```



More information about the Digitalmars-d-learn mailing list