Am 19.09.2012 18:00, schrieb bob:
> In most languages that support goto, can you do a goto from one function to another?
I suppose that your question is not very clearly stated. What do you
mean by "goto from one function to another"? If that means to start
that function "normally", i.e. starting its execution from its
beginning, then you just call that another function (that call may
later return to the caller or never return to it, it depends). If you
want instead to start at some other (inner) points of that another
function, then IMHO you have to structure that function in such a way
that there is a branch at its beginning depending on the value of a
parameter of the function call. (Of course in assembler wild jumps are
easy, but one of the design goals of decent programming languages is
to prevent the possible bad consequences of such things from occurring.)
M. K. Shen