c - Can 1 return invoke 2 returns? -
this theoretical question there's not much utilize in it.
consider situation :
function a() { return; } function b(){ a(); }
can invoke homecoming in parent function kid one?
now in case can simpley return a();
, happen let's you're intrested of not preforming return.
i know when translating assembly doesn't create sense, in case u can utilize goto
know how unsafe is.
my logic says if can preform continue
kid loop invoke go on on parent, should same, loops doesn't impact stack makes sense go on work.
i wondering if there's way handle case witjout using events or oop approach?
the traditional c solution longjmp
function, can jump arbitrary way stack. mind you, there have been people wise plenty not utilize it, , has been largely succeeded exception handling.
c logic theory
No comments:
Post a Comment