On Wed, 11 Jun 2014 23:01:31 +0000 matovitch via Digitalmars-d-learn <digitalmars-d-learn@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