Please vote once and for good: range operations
Michel Fortin
michel.fortin at michelf.com
Thu Jan 29 03:37:35 PST 2009
On 2009-01-29 03:33:13 -0500, Daniel Keep <daniel.keep.lists at gmail.com> said:
> while( range.nonEmpty )
> {
> doSomethingWith(range.front);
> range.advanceFront;
> }
What I'd like is to place directly the range in the conditional
expression and have it converted to a boolean (false if empty, true if
not):
while (range)
{
doSomethingWith(range.front);
range.advanceFront;
}
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d
mailing list