D-Programming-Language/phobos — pull request #433 by sandford (2012-02-14 23:20:59+00:00)
Title: Issue 5233 - std.range.put accepts *any* element type when putting to an array.

This patch primarily adds code snippets to put and adds support for output ranges to recursively call put on themselves and bypassing the r.put code snippets. This lets templated output ranges support all the code snippets in put() without having to re-implement them.

This patch also address issue 4880 - [patch] std.range.put does not handle output ranges implement via opDispatch; breaks on RefAppender

Other Changes

* char[] and wchar[] are now considered output ranges.

Unchanged

* Mutable arrays are filled, while immutable arrays are appended to, which seems inconsistent at first.
* static assert usage; there was a time when static assert inside template constraints caused issues, but this appears to have been fixed.

fix issue 5233
http://d.puremagic.com/issues/show_bug.cgi?id=5233
fix issue 4880
http://d.puremagic.com/issues/show_bug.cgi?id=4880