Static argument optimization

Vladimir Panteleev thecybershadow at gmail.com
Tue Oct 7 02:21:15 PDT 2008


On Tue, 07 Oct 2008 04:32:07 +0300, Janderson <ask at me.com> wrote:

> Walter has talked about adding the keyword static in the past to  
> generate templates ie:
>
> int pow(static int n, static int power)
> {
>
> }
>
> I'm not sure if all the params needed to be constant for it to generate  
> a template.  I can't see why your proposal wouldn't work with this.

Thanks. Is this still planned to be implemented?

-- 
Best regards,
  Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d mailing list