On Thursday, 10 May 2012 at 01:06:31 UTC, Matt Peterson wrote:
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.
Well I mean of course I tried it (and it didn't work), but I was
just making sure I wasn't doing something wrong and that it
wasn't recently added or something.
Ok I'll make a request for it.