January 25, 2004 Re: DMD compiler does like template recursion | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | Walter wrote:
> "Roel Mathys" <roel.mathys@yucom.be> wrote in message
> news:buvsk3$1fii$1@digitaldaemon.com...
>
>>On the default arguments issue: will there be in the future support for
>>default parameters in templates and/or functions.
>
>
> It isn't really necessary, since D supports function overloading and class
> template overloading.
>
>
yes, simply forwarding an overloaded (simpler) version to a more complicated version with the default argument(s) filled in will do.
it's a matter of making a choice, and that's up to you, I believe :-)
bye,
roel
|
Copyright © 1999-2021 by the D Language Foundation