LINUX.ORG.RU

История изменений

Исправление Legioner, (текущая версия) :

В данном случае оно не сработает, т.к. стека не будет.

«If you try to call the nested function through its address after the containing function exits, all hell breaks loose. If you try to call it after a containing scope level exits, and if it refers to some of the variables that are no longer in scope, you may be lucky, but it’s not wise to take the risk. If, however, the nested function does not refer to anything that has gone out of scope, you should be safe.»

Исходная версия Legioner, :

В данном случае оно не сработает, т.к. стека не будет.