3 ms·
> [goto] is the primitive from which all higher level control flow is ultimately derived I'm pretty sure you cannot implement conditional branches using uncond
by mortehu 11y ago
> [goto] is the primitive from which all higher level control flow is ultimately derived
I'm pretty sure you cannot implement conditional branches using unconditional branches as a building block. Unless you count indirect branches, which goto usually doesn't support.
- taeric 11y agoNot that I'd recommend it, but sure you can. Just allow modification of the code to include where you want to jump to. :) Scarily enough, I think this used to actually be somewhat common place and is why many functions were not reentrant.