Re: Compile time code paths

2009-08-11 Thread Jeremie Pelletier
Don Wrote: > Jeremie Pelletier wrote: > > David Gileadi Wrote: > > > >> Daniel Keep wrote: > >>> Jeremie Pelletier wrote: > If a function has both an asm and D implementations inside its body, and > the D version can be executed at compile time, but the asm one is much > faster a

Re: Compile time code paths

2009-08-11 Thread Don
Jeremie Pelletier wrote: David Gileadi Wrote: Daniel Keep wrote: Jeremie Pelletier wrote: If a function has both an asm and D implementations inside its body, and the D version can be executed at compile time, but the asm one is much faster at runtime. Is it possible to have the compiler us

Re: Compile time code paths

2009-08-10 Thread Jeremie Pelletier
David Gileadi Wrote: > Daniel Keep wrote: > > Jeremie Pelletier wrote: > >> If a function has both an asm and D implementations inside its body, and > >> the D version can be executed at compile time, but the asm one is much > >> faster at runtime. Is it possible to have the compiler use the D c

Re: Compile time code paths

2009-08-10 Thread David Gileadi
Daniel Keep wrote: Jeremie Pelletier wrote: If a function has both an asm and D implementations inside its body, and the D version can be executed at compile time, but the asm one is much faster at runtime. Is it possible to have the compiler use the D code path at compile time (ie to fill in

Re: Compile time code paths

2009-08-08 Thread Daniel Keep
Jeremie Pelletier wrote: > If a function has both an asm and D implementations inside its body, and the > D version can be executed at compile time, but the asm one is much faster at > runtime. Is it possible to have the compiler use the D code path at compile > time (ie to fill in enums and wh

Compile time code paths

2009-08-08 Thread Jeremie Pelletier
If a function has both an asm and D implementations inside its body, and the D version can be executed at compile time, but the asm one is much faster at runtime. Is it possible to have the compiler use the D code path at compile time (ie to fill in enums and whatnot), and have the asm version a