[Issue 10662] byLine!(Char, immutable Char) won't compile in git master

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 17 15:04:47 PDT 2013


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



--- Comment #5 from monarchdodra at gmail.com 2013-07-17 15:04:45 PDT ---
(In reply to comment #4)
> (In reply to comment #2)
> > I question whether or not this is a "rejects valid": byLine explicitly states
> > buffer re-use, so requesting a `ByLine!(immutable Char)` simply is not
> > possible.
> 
> Where does byLine state that?

Hum... I guess it doesn't actually state it (my bad). But even if
un-documented, it is the "de facto" behavior, and the subject of countless
threads on the boards.

If (*if*) we accept that ByLine is designed as a range wrapper to
"readln(_front)", then we should take into account that readln *does* document
buffer re-use...

That's my take on it anyways. I think adding support for this adds little value
(IMO), and can only be exploited with a hard to use syntax.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list