Inline in an infinite recursive function

Asked

Viewed 57 times

1

What happens to the program if I declare an infinite recursive function inline?

1 answer

1


In theory or practice? In theory it could break the compiler, but every worthy compiler will do the inline limited form. It doesn’t pay to do more than 4 optimizations (this is implementation detail), after that it is better to make the call without the inline. In fact, it’s possible that you might consider doing nothing at all.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.