News for hackers. Stuff that matters.
Re:Fortran adds conditional expressions by zh3 on Thursday July 01, 2021 @02:50PM (#27702930)
Well, if Fortran is going to borrow from C, to repay the favour I trust we'll get computed GOTOs in C31.
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.
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...
Re:Fortran adds conditional expressions by wk_end on Thursday July 01, 2021 @04:22PM (#27704264)
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.
Re:Fortran adds conditional expressions by floxy on Thursday July 01, 2021 @05:05PM (#27704859)
Re:Fortran adds conditional expressions by comex on Thursday July 01, 2021 @10:27PM (#27707294)
Yes, but it’s a GCC extension, not standard.
Re:Fortran adds conditional expressions by gnufx on Thursday July 01, 2021 @05:14PM (#27704955)
I remember the comp.compilers moderator calling C a Fortran-like language.
Re:Fortran adds conditional expressions by wumpus on Thursday July 01, 2021 @06:48PM (#27705848)
Well, 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.