http://d.puremagic.com/issues/show_bug.cgi?id=10444
Summary: writeln of a SIMD register
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2013-06-22 07:33:30 PDT ---
import std.stdio, core.simd;
void main() {
ubyte16 x;
writeln(x); // Error
}
DMD 2.064alpha gives a long sequence of errors:
...\format.d(2950): Error: template std.format.formatValue does not match any
function template declaration. Candidates are:
...
test.d(4): Error: template instance std.stdio.writeln!(__vector(ubyte[16u]))
error instantiating
The workaround is to use .array:
writeln(x.array); // OK
But I'd like writeln to write SIMD values as ubyte16 even without .array for
greater uniformity in debugging code.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------