digitalmars.D - asynchronous IO and std.stream
- Ben Hinkle (12/12) Feb 08 2005 D's std.stream module is similar to C#'s stream architecture. For exampl...
D's std.stream module is similar to C#'s stream architecture. For example they share Stream, BufferedStream and FileStream (oh, and MemoryStream). The difference is in std.stream the Readers and Writers are merged into the base Stream. Another difference is that C# has a nice feature to do asynchronous I/O. See for example, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconASynchronousFileIO.asp My question: is it worth it and is anyone willing to add this to std.stream? I know the Win32 API supports async IO but I have no idea about Posix systems. Aside from async IO C# also has a CryptoStream. Any takers for that one? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyCryptoStreamClassTopic.asp I think it would be nice to round out std.stream. -Ben
Feb 08 2005