Thread overview
[Issue 16025] mixin myTemplate should throw an error
May 14, 2016
ag0aep6g@gmail.com
May 15, 2016
b2.temp@gmx.com
Jun 05, 2016
ag0aep6g@gmail.com
Jun 05, 2016
ag0aep6g@gmail.com
Mar 21, 2020
Basile-z
Jan 20, 2021
Bolpat
Dec 17, 2022
Iain Buclaw
Dec 22, 2022
RazvanN
May 14, 2016
https://issues.dlang.org/show_bug.cgi?id=16025

ag0aep6g@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g@gmail.com

--- Comment #1 from ag0aep6g@gmail.com ---
Please provide a full test case. As it is, your code fails because myTemplate isn't defined.

When I add `template myTemplate() {}`, then it compiles. That's expected.

You may be mixing up template mixins with string mixins. `mixin myTemplate;` is a template mixin. `mixin(myTemplate)` is a string mixin. They do different things.

--
May 15, 2016
https://issues.dlang.org/show_bug.cgi?id=16025

b2.temp@gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com

--- Comment #2 from b2.temp@gmx.com ---
I suppose he speaks about this:

----
mixin template Foo(){}
template Bar(){} // not a mixin

mixin Foo;
mixin Bar; // can be mixed

void main(){}
June 05, 2016
https://issues.dlang.org/show_bug.cgi?id=16025

ag0aep6g@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tomerfiliba@gmail.com

--- Comment #3 from ag0aep6g@gmail.com ---
*** Issue 16125 has been marked as a duplicate of this issue. ***

--
June 05, 2016
https://issues.dlang.org/show_bug.cgi?id=16025

--- Comment #4 from ag0aep6g@gmail.com ---
See also issue 12298.

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=16025

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--
January 20, 2021
https://issues.dlang.org/show_bug.cgi?id=16025

Bolpat <qs.il.paperinik@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qs.il.paperinik@gmail.com

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=16025

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 22, 2022
https://issues.dlang.org/show_bug.cgi?id=16025

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |DUPLICATE

--- Comment #5 from RazvanN <razvan.nitu1305@gmail.com> ---


*** This issue has been marked as a duplicate of issue 12298 ***

--