[Issue 6256] [patch] std.algorithm.map does not support static arrays and has 'length' for narrow strings.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 19 20:01:50 PDT 2013


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


hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx


--- Comment #1 from hsteoh at quickfur.ath.cx 2013-08-19 20:01:49 PDT ---
FWIW, map has been fixed in git HEAD to not export length with narrow strings:

import std.algorithm, std.range;
void main() {
        string narrow = "abcdef";
        auto m = map!(a => a)(narrow);
        static assert(!hasLength!(typeof(m)));
}

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