Multiple alias this failed workaround...obscure error message

Jonathan M Davis via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 11 20:17:18 PDT 2014


On Wed, 11 Jun 2014 23:01:31 +0000
matovitch via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> About alias working with identifier but not with (runtime)
> expression. Alias should work with compile time expression like
> map!(x=>2*x) right ? So a static cast should work isn't it ?
> (though static_cast doesn't exist in D :/)

alias is for _symbols_, not expressions.

http://dlang.org/declaration.html#alias

I really don't think that what you're trying to do is going to work.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list