|
|
Log in / Subscribe / Register

GCC 13.1 released

GCC 13.1 released

Posted May 1, 2023 19:13 UTC (Mon) by bartoc (guest, #124262)
In reply to: GCC 13.1 released by eru
Parent article: GCC 13.1 released

Oberon-07 is basically "what if Niklaus Wirth designed C. It's a very minimal and easy to implement language but keeps some of the best bits of Pascal (in particular it has a module system, no textual inclusion). I kinda wish there existed a high quality Oberon-07 toolchain, although for any usecase that isn't Wirth's tiny little bootstrapped OS I suspect a bunch of extensions would be made and you'd end up somewhat closer to freepascal or Delphi.

All these languages (including C, and Delphi, even though it tries) have the problem that it's basically impossible to implement your own data structure that works like the built-in ones. The syntax just isn't there. I think this is because to do that you either need something that works like C++ references or some way to customize subscripting that differs depending on if the subscript expression is mutable or not (nim's `[]` vs `[]=`, along with `var`, or rust's Index vs IndexMut). Delphi's array properties try to do the second thing but fail a little bit because the return value is the wrong type, so you can't do like array[idx].some_method() and have that method mutate the thing inside the array.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds