On 2010-08-18 22:37:04 -0400, dsimcha <dsim...@yahoo.com> said:

If D is at all serious about generic programming, we simply can't require this
to be dealt with **everywhere** as a special case.

I do agree that the current special case situation is pretty bad. Foreach really need to use ElementType!string by default. Whether this is done by changing foreach (my preference), or by reverting ElementType!string to its previous incarnation and using a special range to iterate over characters, I think it'd be an improvement over the current situation. Having the standard library and the language disagree with each other is be pretty bad.

--
Michel Fortin
michel.for...@michelf.com
http://michelf.com/

Reply via email to