5 ms·
Well, if Fortran is going to borrow from C, to repay the favour I trust we'll get computed GOTOs in C31.
by zh3 5y ago
Well, if Fortran is going to borrow from C, to repay the favour I trust we'll get computed GOTOs in C31.
- pontifk8r 5y agoComputed GOTOs in C are just pointer arithmetic and casts.
- whatshisface 5y agoCan you jump to a computed GOTO in C? I guess you can if you cast to a function pointer...
- wk_end 5y agoI’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.
- deleted 5y ago[deleted]
- floxy 5y agohttps://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
- comex 5y agoYes, but it’s a GCC extension, not standard.
- gnufx 5y agoI remember the comp.compilers moderator calling C a Fortran-like language.
- wumpus 5y agoWell, that's a joke referring to the typical Computer Science jargon of calling them both Algol-like languages. I don't recall him saying that while I used to read that group, but I would have chuckled.