[Issue 10176] Something to extend an array with a lazy range

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 26 17:22:49 PDT 2013


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


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #3 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-05-26 17:22:46 PDT ---
> Hmm, I would have hoped that 'put' would work here, but it doesn't:

put on arrays does not append. It starts writing at the beginning of the array.
So, it functions fundamentally differently from most output ranges. Presumably,
it's the desired behavior if you're dealing with a pre-allocated chunk of
memory that you're trying to fill, but it is problematic in that it doesn't
function like other output ranges. I've been think of opening a discussion in
the newsgroup on it so that we can figure out how to better sort out some of
these quirks of output ranges.

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