Sujet : Re: "The Best Programming Language for the End of the World"
De : albert (at) *nospam* spenarnc.xs4all.nl
Groupes : comp.lang.forthDate : 17. Apr 2025, 13:04:48
Autres entêtes
Organisation : KPN B.V.
Message-ID : <nnd$04c527c8$2cc19f08@3bd15e6c8b2c5126>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <
2025Apr16.232617@mips.complang.tuwien.ac.at>,
Anton Ertl <
anton@mips.complang.tuwien.ac.at> wrote:
Hans Bezemer <the.beez.speaks@gmail.com> writes:
You can tune the behavior of most C compilers as well - comply to a
certain standard. Don't tell me you can't do that with Forth (because
you can).
>
C standards avoid incompatible changes as good as they can. However,
because C is a keyword-based language and redefining existing names
produces an error in C, even adding a single keyword or a single name
can break compatibility with an existing program, and the compilers
allow you to dial the specific standard in order to deal with that.
Oh? For example 'static' in a c-source has the meaning of making a name
invisile to the outside world.
A normal person would call that 'local', especially given that static
actually meant residing in heap memory.
So as the c-expert hired for Fico moldings I introduced a file
fico.h with a line
#define static local
(and the line
#define TRUE 1
because they came from Pascal and thought that TRUE was -1 ).
- anton
Groetjes Albert
-- Temu exploits Christians: (Disclaimer, only 10 apostles)Last Supper Acrylic Suncatcher - 15Cm Round Stained Glass- Style WallArt For Home, Office And Garden Decor - Perfect For Windows, Bars,And Gifts For Friends Family And Colleagues.