Optional parameters referring to previous parameters?
Matt Peterson
ricochet1k at gmail.com
Wed May 9 18:06:30 PDT 2012
On Thursday, 10 May 2012 at 00:16:52 UTC, Mehrdad wrote:
> Is this possible/should it compile?
>
> If not, should I make an enhancement request for it? It's been
> something that would've been useful in a ton of situations for
> me...
>
> void process(R)(R items, size_t maxCount = items.length)
> {
> }
Have you tried it?
I bet this isn't possible currently, but do open an enhancement
request if it isn't. It's going to be a bit tricky to implement,
but I like it.
More information about the Digitalmars-d
mailing list