Static argument optimization
    Vladimir Panteleev 
    thecybershadow at gmail.com
       
    Tue Oct  7 02:18:42 PDT 2008
    
    
  
On Tue, 07 Oct 2008 03:00:38 +0300, dsimcha <dsimcha at yahoo.com> wrote:
>
> Am I missing something, or is the much bigger problem here that you're  
> using
> non-tail recursion when iteration would be much more efficient (and less  
> likely to
> overflow the stack)?
Yeah, power is just an example. In real-life cases, I have non-recursive  
functions that take several arguments and do various calculations with  
them.
-- 
Best regards,
  Vladimir                          mailto:thecybershadow at gmail.com
    
    
More information about the Digitalmars-d
mailing list