Re:Fortran adds conditional expressions
by pontifk8r on Thursday July 01, 2021 @03:45PM
(#27703683)
Computed GOTOs in C are just pointer arithmetic and casts.
[ Parent
| on HN ]
Re:Fortran adds conditional expressions
by whatshisface on Thursday July 01, 2021 @03:49PM
(#27703739)
Can you jump to a computed GOTO in C? I guess you can if you cast to a function pointer...
I’m no C language lawyer, but it’s hard to imagine that sort of voodoo won’t trigger some kind of undefined behaviour that’ll cause the optimizer to erase your program at best and summon nasal demons at worst.