[Issue 11340] New: ElementType and ElementEncodingType return odd qualified element types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 24 04:41:52 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11340
Summary: ElementType and ElementEncodingType return odd
qualified element types
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-10-24 04:41:51 PDT ---
-----
import std.range;
void main()
{
pragma(msg, ElementType!(string)); // dchar
pragma(msg, ElementType!(wstring)); // dchar
pragma(msg, ElementType!(dstring)); // immutable(dchar)
pragma(msg, ElementEncodingType!(string)); // immutable(char)
pragma(msg, ElementEncodingType!(wstring)); // immutable(wchar)
pragma(msg, ElementEncodingType!(dstring)); // immutable(dchar)
}
-----
As far as I know these should all be const(T). Am I wrong?
--
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