File IO: C# streams VS iterators?

Jacob Carlborg doob at me.com
Thu Nov 7 23:27:15 PST 2013


On 2013-11-08 01:57, DDD wrote:
> I was watching a dconf talk about porting C# code to D. One thing that
> came up was there isn't anything like C# streams for D. Walter said he
> thinks iterators (unless I remember wrong) is superior. The speaker
> agreed but said it isn't a drop in replacement so that is an issue if
> you want to port.
>
> I haven't access file in D and i'm completely confused. What are
> iterators in regards to file IO?

he must have said ranges. A range is like a pair of iterators. It's 
heavily used in D.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list