On Wednesday, 8 December 2021 at 23:43:48 UTC, Salih Dincer wrote:
Is this not a contradiction? : and 3.1415 aren't string:

```d
void foo(string...)(string args) {

`string...` there is a user-defined identifier representing a mix of types.

string isn't special, yo can declare your own variables with that name. And that's what you did here.

I think you meant to say

void foo(string[] args...) {}

which is avariadtic number of only strings
  • T... args! Salih Dincer via Digitalmars-d-learn
    • Re: T... args! Adam Ruppe via Digitalmars-d-learn
      • Re: T... args! Salih Dincer via Digitalmars-d-learn
        • Re: T... args! Petar via Digitalmars-d-learn
        • Re: T... args! Steven Schveighoffer via Digitalmars-d-learn
          • Re: T... arg... Salih Dincer via Digitalmars-d-learn
            • Re: T..... Steven Schveighoffer via Digitalmars-d-learn
              • Re:... Tejas via Digitalmars-d-learn
                • ... Dennis via Digitalmars-d-learn
              • Re:... Salih Dincer via Digitalmars-d-learn
                • ... Tejas via Digitalmars-d-learn
                • ... Salih Dincer via Digitalmars-d-learn

Reply via email to