[fpc-pascal] inline function vs recursive function

ik idokan at gmail.com
Mon Feb 6 19:51:30 CET 2012


Hello,

Let's say I have a function that some of it's code (or all) can be used in
more then one location inside the function itself.
I can make a nested function with the code and set it to inline, make it
normal, or make a recursion with it.

What's the best practice in your opinion to take, and why ?

Thanks,
Ido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120206/4fe489c0/attachment.html>


More information about the fpc-pascal mailing list