On Mon, Jul 23, 2012 at 9:46 AM, Simen Kjaeraas <simen.kja...@gmail.com> wrote:

> Wrong way around. Try this:
>
>
> template Twice(double d)
> {
>     enum Twice = d * 2;
> }
>
> double foo(double d)
> {
>     return Twice!d;
> }
>
> void main()
> {
>     enum  t = foo(1.0);
>     pragma(msg, t);
> }

Ah, that, OK. And __ctfe does not help.
Would it really limit the proposed scheme for std.reflection?

Reply via email to