[Issue 2081] Foreach over Stream appears broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 8 18:28:36 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2081





------- Comment #4 from jlquinn at optonline.net  2008-05-08 20:28 -------
(In reply to comment #3)
> If it's a bug, than it's a bug in DMD. If it's related to phobos than it's a
> feature request because it's operating correctly, just not the way we want it
> to.

Well, the docs say it should work, so there is at least the bug that the docs
don't align with the implementation, even if we accept the implementation as
correct.

> I use D1.0 so I can't test it but try this
> 
> foreach (ref char[] buf; f) {

I expect that should work, but I'm trying to use string where I can.  I tend to
find string as a type more aesthetically pleasing to work with.


-- 



More information about the Digitalmars-d-bugs mailing list