From: Gautier <gautier.demontmollin@maths.unine.ch>
Subject: Re: bitwise comparators
Date: 2000/01/17
Date: 2000-01-17T00:00:00+00:00 [thread overview]
Message-ID: <388394E0.55D1E913@maths.unine.ch> (raw)
In-Reply-To: 38836CF2.AB738B8B@hotmail.com
Alexander Van Hecke wrote:
> This seems like an attack on C/C++! I'm sorry, but I have to react on this
> > Ada has packages,
> C was ment to be used modular and for reuse : put your code in separate .c
> and .h files.
I feel you miss something. The .h files are just included texts; the
`defines' in one can influence another so the inclusion order is delicate;
there is no link (apart a moral one) between the .h and the .c and - correct me
if I'm wrong - a standard C compiler won't check the integrity between
.h and .c ... In addition, the most resources on the Net break your .h <-> .c rule...
> > exceptions,
> you can program exceptions in C. I never said that C has all these things,
> but you can program them, and there are masses of libraries available that
> have just what you need.
Aaah but are they compatible between each other ? Maybe there are masses
of incompatible libraries ? And masses of software component that use
these incompatible libraries (I hope no)?
Your argument is valid if you're toying with _your_ exceptions, on _your_ PC...
So C hasn't this feature; it can be simulated, with some effort.
Ada has it. So, where is the problem ?
You could invent a language without subprograms and say: <<it's easy, I just
have to paste the code where it is needed>>... Without loops: <<just
if's and goto's>>. Without types at all - detected at run-time.
Such regressive trends exist, but (1) does it help the programmer and
(2) does it lead to efficient code (optimized subtypes, generics, exceptions,
inlining) ?
> > generics,
> use structs and callback functions and you have perfect generic types!
You imagine a rather inefficient way to implement generics. Try the _real_
genericity and see how an Ada compiler instanciates it at compile-time,
optimized... Wouldn't a C macro better fit (question) ?
Too much energy for holy war tonight - I prefer programming. My advice:
Take some time to learn the <<Pascal subset>>, take a week to toy with
Ada (the programming language, I mean), make _your_ idea if you can!
--
Gautier
_____\\________________\_______\
http://members.xoom.com/gdemont/
next prev parent reply other threads:[~2000-01-17 0:00 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-15 0:00 bitwise comparators Alexander Van Hecke
2000-01-15 0:00 ` David C. Hoos, Sr.
2000-01-16 0:00 ` Jeff Carter
2000-01-16 0:00 ` Bryce Bardin
2000-01-16 0:00 ` DuckE
2000-01-17 0:00 ` Alexander Van Hecke
2000-01-17 0:00 ` Jeff Carter
2000-01-17 0:00 ` Alexander Van Hecke
2000-01-17 0:00 ` David Starner
2000-01-17 0:00 ` Alexander Van Hecke
2000-01-17 0:00 ` David Starner
2000-01-18 0:00 ` Preben Randhol
2000-01-18 0:00 ` Fraser
2000-01-18 0:00 ` Bertrand Augereau
2000-01-19 0:00 ` Ted Dennison
2000-01-19 0:00 ` Marin D. Condic
2000-01-19 0:00 ` Ted Dennison
2000-01-18 0:00 ` Ted Dennison
2000-01-17 0:00 ` Gautier [this message]
2000-01-17 0:00 ` Alexander Van Hecke
2000-01-17 0:00 ` David Starner
2000-01-18 0:00 ` Gautier
2000-01-18 0:00 ` Ted Dennison
2000-01-18 0:00 ` Jeff Carter
2000-01-18 0:00 ` Keith Thompson
2000-01-19 0:00 ` Gisle S�lensminde
2000-01-19 0:00 ` Jeff Carter
2000-01-19 0:00 ` Keith Thompson
2000-01-19 0:00 ` David Starner
2000-01-19 0:00 ` Ole-Hjalmar Kristensen
2000-01-18 0:00 ` Pascal Obry
2000-01-21 0:00 ` Ada vs. C/C++ (was re: bitwise something-or-other) Mark Lundquist
2000-01-21 0:00 ` Mark Lundquist
2000-01-24 0:00 ` Hyman Rosen
2000-01-17 0:00 ` bitwise comparators tmoran
2000-01-17 0:00 ` Mike Silva
2000-01-17 0:00 ` Brian Rogoff
2000-02-05 0:00 ` Ashley Deas Eachus
2000-02-05 0:00 ` Jeff Carter
2000-02-06 0:00 ` Andy
2000-02-07 0:00 ` Brian Rogoff
2000-02-09 0:00 ` Robert Iredell Eachus
2000-01-17 0:00 ` Alexander Van Hecke
2000-01-17 0:00 ` Mike Silva
2000-01-18 0:00 ` Charles Hixson
2000-01-17 0:00 ` Gautier
2000-01-17 0:00 ` David Starner
2000-01-17 0:00 ` Matthew Heaney
2000-01-17 0:00 ` Gautier
2000-01-18 0:00 ` Keith Thompson
2000-01-19 0:00 ` Ole-Hjalmar Kristensen
2000-01-17 0:00 ` David C. Hoos, Sr.
2000-01-18 0:00 ` DuckE
2000-01-18 0:00 ` Ted Dennison
2000-01-16 0:00 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox