I've attached modified versions of std.stream and mmfile and the help section for std.mmfile and std.stream. The std.mmfile changes are:The std.stream changes are:
- change module declaration to std.mmfile
- change class declaration to not be auto
- add mMode read-only property to get the file mode of type MmFile.Mode
- added Dave J. Fladebo's performance improvements for buffered readLine
- fixed a bug in read/write cfloat/cdouble/creal endian support
- uncommented MmFileStream and cleaned it up to use MmFile's mode property.
template foo(T:T[])now correctly resolve T in foo(int[]) to int rather than int[].
char[][] foo; foo = new char[][45]; // new, correct way to allocate array of 45 strings //foo = new char[45][]; // old, now wrong, way
int[3][4] a; // a is 4 arrays of 3 arrays of ints int b[4][3]; // b is 4 arrays of 3 arrays of ints
byte b = 0x10; // ok ubyte c = 0x100; // error byte d = 0x80; // error ubyte e = 0x80; // ok