Wednesday 10 April 2013

Question: Can inline functions have a recursion?


Question: Can inline functions have a recursion?
Answer: No.

Syntax wise It is allowed. But then the function is no longer Inline. As the compiler will never know how deep the recursion is at compilation time.

No comments:

Post a Comment