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.