November 25, 2014 [Issue 13763] std.string.representation of immutables | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13763 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh@quickfur.ath.cx -- |
October 13, 2018 [Issue 13763] std.string.representation of immutables | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13763 dechcaudron+dlang.issue.tracking@protonmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dechcaudron+dlang.issue.tra | |cking@protonmail.com Resolution|--- |FIXED --- Comment #1 from dechcaudron+dlang.issue.tracking@protonmail.com --- As in DMD v2.082.1, this compiles and executes as expected. Example code: void main() { import std.string: representation; import std.stdio; enum Enum : char { A = 'a', B='b', C='c'} const Enum[] a1 = [Enum.A, Enum.B]; writeln(a1.representation); // [97, 98] immutable Enum[] a2 = [Enum.A, Enum.C]; writeln(a2.representation); // [97, 99] } I am unsure as to whether this was "accidentally" fixed as part of the regular evolution of Phobos or was reported in a duplicate issue in fixed as a response to such. Either way, that's one issue less. -- |
Copyright © 1999-2021 by the D Language Foundation