www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D2 MemoryStream

MemoryStream's constructors are currently defined like this:

  this(ubyte[] buf);
  this(byte[] buf);
  this(char[] buf);

Does anyone use byte (as opposed to ubyte)? And if the purpose of the char[]
overload is to accept a string, it should just take a string -- ie,
immutable(char)[] -- instead. Bug?
Jun 30 2009