Am I getting this all right?

Jarrett Billingsley kb3ctd2 at
Thu Dec 14 17:53:37 PST 2006

"Bill Baxter" <dnewsgroup at> wrote in message 
news:elsv06$r2e$1 at

> Hmm.  Ok, so you really do want to use foreach(...; set) if at all 
> possible.
> Sure would be nice if there were a .keyiter that could be used with 
> foreach that was efficient and didn't require allocations.

Meh, I don't think the

foreach(key, ____; set)

Is that bad.  Maybe it's a little unclear, but as far as efficiency goes, 
it's just passing the extra unused value parameter.

> Too bad the iterator discussions fizzled out without anything getting 
> decided.

Yeah.  We didn't start a three-week four-hundred-post thread about it, so I 
guess Walter didn't consider it important. 

More information about the Digitalmars-d-learn mailing list