https://issues.dlang.org/show_bug.cgi?id=20053

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Walter Bright <[email protected]> ---
> Lots of expressions don't work as mixin

They do. Compile mixins come in three forms:

1. declaration
2. statement
3. expression

The form they don't come in is as a type, which is what your example requires.

Also:

    alias E = Expression;

where Expression is a general expression, doesn't work. For example,

    int x;
    alias Y = x + x;

doesn't work.

I supposed type mixins could be added, but I haven't seen a request for this
before.

--

Reply via email to