> Hi,
> I got this code from some site:
[quoted text clipped - 13 lines]
> hardcoded *label* for a correct compilation. The above code maybe written
> in gcc i think. Am i right to say that this code cannot compile in vc?
Neither C nor C++ allow computed goto. Computed goto may have some
performance advantages over naive control structures, but the optimizing
compiler should generate code at least as fast as computed goto.
> regards,
> ..ab
Ben Voigt [C++ MVP] - 06 Mar 2008 20:41 GMT
>> Hi,
>> I got this code from some site:
[quoted text clipped - 17 lines]
> performance advantages over naive control structures, but the optimizing
> compiler should generate code at least as fast as computed goto.
Also note that an array of function pointers is possible in C (or C++), and
provides a computed gosub.
>> regards,
>> ..ab