News for hackers. Stuff that matters.
Re:Function Inheritance Is Fun and Easy by transfire on Sunday September 27, 2015 @01:01AM (#10285536)
Because fib is recursive, pretty sure you will only get one printout, not one for each call to fib.
Re:Function Inheritance Is Fun and Easy by Lord_DeathMatch on Sunday September 27, 2015 @02:21AM (#10285662)
As it is here, yeah, only once at the root level. But if you were to use it as a decorator on the original function, and reassign to the original name (as the decorator syntax does), it would print at every level, as the recursive call would bind to the decorated function.