Re: How do I use mixin types?

2019-08-02 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 2 August 2019 at 21:10:08 UTC, Andrej wrote: The D spec mentions something called mixin types: This is brand new to the spec and hasn't yet been released in a compiler. You can get a nightly build here https://dlang.org/changelog/pending.html to maybe try, but I don't think it

How do I use mixin types?

2019-08-02 Thread Andrej via Digitalmars-d-learn
The D spec mentions something called mixin types: https://dlang.org/spec/grammar.html#MixinType https://dlang.org/spec/type.html#mixin_types If I'm understanding the grammar right, it means you can use a string mixin anywhere a Type would normally go, for example: int func(mixin("int") x) {