hot take: if C++ was truly committed to zero cost abstractions, functions would have opt-in reentrancy, the same way classes have opt-in vtables
-
-
I think it's important to remember that the reason early compilers differentiated between recursive and non-recursive functions is because early processors lacked a push-down stack.
-
If you called a subroutine at address A, the return PC would literally be stored at A, and the first instruction of the subroutine would start at A+1. Such processors were still the state of the art when Algol was conceived.
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.