comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Is this ground dead? Also, info on Mach that's more recent
Date: 1998/01/19
Date: 1998-01-19T00:00:00+00:00	[thread overview]
Message-ID: <dewar.885258001@merv> (raw)
In-Reply-To: 6a0351$i53@nike.volvo.se


Peter says

<<Checking at compile time is to put a bucket under the hole
instead of fixing the leak!

Typechecking done by the compiler is (IMHO) the wrong place.
It should be done at link time (or load time) .

Typechecking at compile time will among other things create
awful code at those times where typechecking is not wanted.
(like printf() ) and does not really prevent one from
screwing up arguments under all circumstances.
>>

Peter must I guess be a C programmer with very little imagination as
to what can and cannot be done by type checking. It is of course
perfectly possible to do thorough type checking at compile time (there
are many languages which show this, e.g. Algol-68 if you want to look
at structural typing, or Ada if you want to look at a more elaborate
typing scheme.

Of course type checking at compile time does not generate awful code?
What on earth are you talking about? The whole point of type checking
at compile time is that it generates NO CODE AT ALL!

As for printf, it is perfectly possible to design a formatted print
interface that is type safe, and no less efficient than printf, indeed
one generally would expect a formatted print facility to generate much
BETTER code than printf, precisely because printf has to do runtime
type checking by its very nature.

Peter, you have got things amazingly upside down here. It is almost
incredible that you can have things so precisely wrong! You really
should broaden your horizons and learn a little bit more about other
programming languages!





  reply	other threads:[~1998-01-19  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <34AE2AE8.ED17B2C6@gildea.net>
     [not found] ` <5l3eir6lvj.fsf@tequila.systemsz.cs.yale.edu>
     [not found]   ` <69j8u6$spl$1@encore.ece.cmu.edu>
     [not found]     ` <5lzpky66rq.fsf@tequila.systemsz.cs.yale.edu>
     [not found]       ` <69jr4q$44j$1@encore.ece.cmu.edu>
1998-01-17  0:00         ` Is this ground dead? Also, info on Mach that's more recent Thomas G. McWilliams
1998-01-17  0:00           ` David A. Cuthbert
1998-01-17  0:00             ` Robert Dewar
1998-01-19  0:00               ` vonhend
1998-01-19  0:00                 ` Robert Dewar
1998-01-19  0:00             ` Anonymous
1998-01-19  0:00               ` feladdress.peter
1998-01-19  0:00                 ` Robert Dewar [this message]
1998-01-20  0:00                 ` Christopher Browne
1998-01-20  0:00                 ` Is this ground dead? Also, info on Mach that's more rec Jerry van Dijk
1998-01-22  0:00                 ` Compile-time type checking Nick Roberts
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox