[Issue 5002] possible std.stream improvements

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 11 13:21:09 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5002



--- Comment #2 from Daniel Gibson <metalcaedes at gmail.com> 2010-10-11 13:20:40 PDT ---
It will probably be deprecated, but at this time it isn't (there is no
alternative yet, anyway).

However I just realized that my idea for read() can't be implemented *that*
easy because it wouldn't work properly with EndianStream.
For that to work one would have to check whether T is a simple type (int,
float, double, long, etc) and in that case call fixBO() in EndianStream (like
the available, inconvenient read(<basic type>) methods in EndianStream already
do).

Or do it old school and provide readInt(), readUInt(), readLong(), readUlong(),
readFloat() etc instead of using a template.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list