Ranges and/versus iterators

Fawzi Mohamed fawzi at gmx.ch
Wed Mar 24 07:11:49 PDT 2010


On 24-mar-10, at 15:00, Fawzi Mohamed wrote:

> [...]
> give a try to
> 	bool popFront(ref T) ( or next, or another name, or even just a  
> delegate with that signature)
> I was surprised how well it works, not perfect but better than the  
> other alternatives I had tried.

I forgot to say, that one of the main pita with that approach is  
having to declare the arguments before using them, but should you  
decide that it is indeed a good alternative I have no doubt that you  
could find a good syntactic sugar that Walter could implement... :)



More information about the Digitalmars-d mailing list