December 12, 2019 [Issue 19237] string mixin struct initializer doesn't compile | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19237 Basile-z <b2.temp@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |b2.temp@gmx.com Resolution|--- |DUPLICATE --- Comment #1 from Basile-z <b2.temp@gmx.com> --- arrays work but not in the path you think it actually does. auto a = mixin("[0]"); gives an "ExpInitializer" made of a "MixinExpression", which contains some code for a "PrimaryExp" that's a "ArrayLiteral". S s = mixin("{0}"); Is rejected because "StructInitializer" is not a primary exp. When can see then that the requested feature is then part of a bigger project, that if done, handles also this specific case. *** This issue has been marked as a duplicate of issue 15692 *** -- | ||||
March 21, 2020 [Issue 19237] string mixin struct initializer doesn't compile | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19237 Basile-z <b2.temp@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|b2.temp@gmx.com | -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply