Function that calculates in compile time when it can
Andrej Mitrovic
andrej.mitrovich at gmail.com
Mon Aug 6 13:55:34 PDT 2012
On 8/6/12, Philippe Sigaud <philippe.sigaud at gmail.com> wrote:
> Which reminds me... What if someone wants Fibonacci values depending
> on a runtime value, but would like them to be calculated really fast?
I think TDPL had some use of the memoize template and used fibonacci
as sample code. It even used it internally for a recursive call. It's
somewhere in the book.
More information about the Digitalmars-d-learn
mailing list