[Issue 4572] std.file.read return type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 6 05:13:46 PDT 2010


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



--- Comment #11 from Steven Schveighoffer <schveiguy at yahoo.com> 2010-08-06 05:13:42 PDT ---
After discussion on the druntime mailing list, it was agreed that dup should
preserve the bits, but we decided to leave concatenation as-is.  This shouldn't
be a huge issue, because one doesn't often concatenate void[]s together. 
There's no clear choice in concatenation because multiple arrays are being
concatenated together, and none of them is going to "own" the data afterwards.

So I think in light of dup now preserving the scan bit, the issue of using
void[] as the return type of std.file.read (non-templated version) is moot.

But I still think being able to apply a type to the return data array via a
template parameter would be a good enhancement.

-- 
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