comp.lang.ada
 help / color / mirror / Atom feed
From: "Peter C. Chapin" <PChapin@vtc.vsc.edu>
Subject: Re: safety critical automotive software
Date: Fri, 24 Dec 2010 13:13:25 -0600 (CST)
Date: 2010-12-24T19:13:27+00:00	[thread overview]
Message-ID: <clcm-20101224-0013@plethora.net> (raw)
In-Reply-To: <clcm-20101216-0007@plethora.net>

On 2010-12-16 13:45, Rolf wrote:

> How do you achieve the "principles of strong typing" using C?

There are tools that enforce a stronger type model on C code than the
compiler does. I believe PC-Lint, for example, can produce warnings
about all implicit conversions and can treat typedefs as new types. I
don't believe it allows you to define range constraints, or anything
else requiring run time checking, but if used aggressively it can bring
a higher degree of discipline to C code than usual.

I'm sure there are other tools that can do similar things.

Peter
-- 
comp.lang.c.moderated - moderation address: clcm@plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line.  Sorry.



  parent reply	other threads:[~2010-12-24 19:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-16 18:45 safety critical automotive software Rolf
2010-12-18 10:11 ` Midoan
2010-12-18 10:49 ` Manuel Gomez
2010-12-18 11:00   ` Manuel Gomez
2010-12-24 19:11 ` Dmitry A. Kazakov
2010-12-24 19:13 ` Midoan
2010-12-24 19:13 ` Peter C. Chapin [this message]
2010-12-24 19:14 ` ebaychatter
2010-12-24 19:16 ` Paul Colin Gloster
2010-12-24 19:16 ` Paul Colin Gloster
2011-01-07 21:40 ` Walter Banks
2011-01-09 17:09   ` Gerd
2011-01-10 14:56     ` Peter Hermann
2011-01-10 19:24       ` Gerd
2011-02-23  3:32   ` ebaychatter
replies disabled

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