On Monday, 20 June 2022 at 13:20:51 UTC, Steven Schveighoffer wrote:
And you can also use an inner struct to define overloaded functions.

I believe templates make a better bandaid
```d
void main(){
        template bar(){
                void bar_(int){}
                void bar_(float){}
                alias bar=bar_;
        }
        bar(1);
        bar(3.14);
}
```

Reply via email to