News for hackers. Stuff that matters.
Re:The Lost Language Extensions of MetaWare's High C Compiler by amszmidt on Wednesday September 25, 2024 @11:26AM (#41648532)
So ... GCC has had some of these for ages.

    Pascal lets you match a range of values with case low..high; wouldn't it be great if C had that feature? High C does, another feature standard C and C++ never adopted.

https://gcc.gnu.org/onlinedocs/gcc/Case-Ranges.html

    Nested functions

https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html

    Generators

GCC doesn't do those --- looks like a fun feature though!

My favourite, which was sadly removed was doing:

    foo ? zork : bork = 123;
Oh well...
Re:The Lost Language Extensions of MetaWare's High C Compiler by JdeBP on Wednesday September 25, 2024 @11:57AM (#41648807)
Not "ages" in comparison to how long MetaWare had them. High C had this stuff back in the early 1990s and 1980s.

The headlined article doesn't mention it, but High C/C++ had modules all of those years ago, too. Anybase literals, as well. Tom Pennello participated in the standardization efforts back then, too, but none of this stuff made it in.

Re:The Lost Language Extensions of MetaWare's High C Compiler by mananaysiempre on Wednesday September 25, 2024 @12:26PM (#41649118)
Is the manual online anywhere? The one for version 1.2 on Bitsavers[1] doesn’t mention any of those.

[1] https://bitsavers.computerhistory.org/pdf/metaware/High_C_La...

Re:The Lost Language Extensions of MetaWare's High C Compiler by mezentius on Wednesday September 25, 2024 @12:57PM (#41649431)
A later version is available here (along with the compiler itself): https://winworldpc.com/product/metaware-high-c-cpp/33x
Re:The Lost Language Extensions of MetaWare's High C Compiler by JdeBP on Wednesday September 25, 2024 @12:43PM (#41649271)
I suspect not. I am lucky enough to be consulting this copy: https://mastodonapp.uk/@JdeBP/113199154771277394

(-:

Re:The Lost Language Extensions of MetaWare's High C Compiler by pistoleer on Wednesday September 25, 2024 @12:03PM (#41648897)
You can still do

    *(foo ? &zork : &bork) = 123;
Re:The Lost Language Extensions of MetaWare's High C Compiler by rescbr on Wednesday September 25, 2024 @07:19PM (#41652895)
What a cursed thing. I like it.
Re:The Lost Language Extensions of MetaWare's High C Compiler by adastra22 on Wednesday September 25, 2024 @12:07PM (#41648929)
GCC’s different implementation is mentioned in the article.
Re:The Lost Language Extensions of MetaWare's High C Compiler by qalmakka on Wednesday September 25, 2024 @12:28PM (#41649133)
GCC nested functions are atrocious and deserve being banned from existence. Like the article rightfully says they've been implemented using weird hacks that make basically impossible to use them safely. There's a reason why Clang has categorically refused to implement them.
Re:The Lost Language Extensions of MetaWare's High C Compiler by uecker on Thursday September 26, 2024 @01:31PM (#41661010)
I actually like GCC's nested functions a lot, although an implementation with function descriptors would be much better.
Re:The Lost Language Extensions of MetaWare's High C Compiler by ronsor on Wednesday September 25, 2024 @01:16PM (#41649620)

    > foo ? zork : bork = 123;
That's kind of horrifying.