zlacker

[parent] [thread] 1 comments
1. morteh+(OP)[view] [source] 2015-10-27 16:34:37
> [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.

replies(1): >>taeric+J3
2. taeric+J3[view] [source] 2015-10-27 17:03:41
>>morteh+(OP)
Not 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.

[go to top]