On Mon, 09 Aug 2010 09:11:19 -0400, Steven Schveighoffer wrote: > On Mon, 09 Aug 2010 09:01:33 -0400, Lars T. Kyllingstad > <[email protected]> wrote: > >> On Mon, 09 Aug 2010 08:11:54 -0400, Steven Schveighoffer wrote: >> >>> On Sun, 08 Aug 2010 09:35:21 -0400, dsimcha <[email protected]> wrote: >>> >>>> == Quote from Mafi ([email protected])'s article >>>>> Hi all, >>>>> what are the directions of D2's streams. I heared std.stream is >>>>> going to get deprecated in D2. I think it's good as long as >>>>> BufferedFile.readLine() returns char[] instead of string. Is D2 >>>>> going to get a Java-like stream model? What's wrong with the old one >>>>> except that it's a bit out of date? >>>>> Mafi >>>> >>>> Two things off the top of my head: >>>> >>>> 1. std.stream doesn't correctly support files > 2GB on 32-bit Linux, >>>> and possibly >>>> on other OS's as well. >>> >>> Doesn't that have to do with using C's FILE * interface? >> >> FILE* isn't used anywhere in std.stream. You're either thinking of >> std.stdio.File or std.cstream.CFile. > > Ah, ok. But does that mean that the problem isn't going away by > deprecating std.stream? I thought FILE * doesn't support large files. > > If that's the case, then assertion 1 from David is incorrect, it's not a > good reason to get rid of std.stream. > > If that's not the case, then I'm wrong :)
A bit of googling shows you are right. We really should get rid of the FILE* dependency... -Lars
