[Issue 2975] copy - source may exceed target
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 26 14:26:45 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=2975
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |jmdavisProg at gmx.com
Resolution| |WONTFIX
--- Comment #2 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-05-26 14:22:25 PDT ---
Output ranges only require the put function. You can't enquire about their
length or whether they're empty - not unless you're relying on them being
something more specific than just an output range. It's up to the output range
to decide how it deals with calls to put that it can't handle. And it's up to
the caller of copy to make sure that the target has enough space. copy does not
explicitly check and _can't_ check, because output ranges don't give it that
ability.
--
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