Partial template application

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Jan 31 11:02:14 PST 2011


Isn't it possible to unify functions which work on compile-time and
run-time arguments?

What I mean is, if curry detects that you're currying a compile-time
argument against a template, then it should do what your
PartialTemplate/StaticCurry would do.

It seems odd having to create 'static' counterparts to functions in
Phobos. So far I only know of staticIndexOf and staticMap. But adding
more would seem like duplicating the effort and creating a sort of
std.staticAlgorithm


More information about the Digitalmars-d mailing list