October 31, 2012 [Issue 8921] New: Printing of array of char-based enums | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8921 Summary: Printing of array of char-based enums Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2012-10-31 04:02:27 PDT --- import std.stdio: writeln; enum Foo : char { A = 'a' } void main() { writeln(Foo.A); Foo[3] bar; writeln(bar); } Expected output: A [A, A, A] Received output (dmd 2.061alpha): A aaa -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation