[Issue 19084] Symbol not resolved in string mixin in template struct

2018-09-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19084 Jonathan Marler changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 19084] Symbol not resolved in string mixin in template struct

2018-08-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19084 --- Comment #3 from Jonathan Marler --- struct Bar(T) { mixin("T foo;"); } T in this case is not a "symbol name string", it is an alias to a symbol. But don't be confused, you can't actually create T with an alias, meaning `alias T = Foo`

[Issue 19084] Symbol not resolved in string mixin in template struct

2018-08-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19084 --- Comment #2 from anonymous4 --- You can reference the symbol directly: import std.format : format; struct Bar(T) { mixin("T foo;"); } unittest { struct Foo { } Bar!Foo bar; } --

[Issue 19084] Symbol not resolved in string mixin in template struct

2018-08-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19084 Jonathan Marler changed: What|Removed |Added CC||johnnymar...@gmail.com --- Comment #1