Setting struct as default parameter of a function using struct literal?

H. S. Teoh hsteoh at qfbox.info
Mon Sep 11 22:13:25 UTC 2023


On Mon, Sep 11, 2023 at 10:05:11PM +0000, Salih Dincer via Digitalmars-d-learn wrote:
> On Monday, 11 September 2023 at 20:17:09 UTC, H. S. Teoh wrote:
> > 
> > Someone should seriously come up with a way of eliminating the
> > repeated type name in default parameters.
> 
> Why not allow it to be flexible enough by using a template parameter?

Because sometimes I want a specific type.


T

-- 
What did the alien say to Schubert? "Take me to your lieder."


More information about the Digitalmars-d-learn mailing list