comp.lang.ada
 help / color / mirror / Atom feed
* Watch out Ada, here comes the new and "safe" C  language
@ 2012-06-26 12:15 Nasser M. Abbasi
       [not found] ` <slsju7lfgekf2hqc3sq29lv12at6vgfe1p@invalid.netcom.com>
  2012-06-27 17:08 ` gautier_niouzes
  0 siblings, 2 replies; 4+ messages in thread
From: Nasser M. Abbasi @ 2012-06-26 12:15 UTC (permalink / raw)



fyi;

A new competition for Ada in safety software has been released:

"C11: A New C Standard Aiming at Safer Programming"

http://www.sys-con.com/node/2302835

(it even has Multithreading now !)

--Nasser



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Watch out Ada, here comes the new and "safe" C  language
       [not found] ` <slsju7lfgekf2hqc3sq29lv12at6vgfe1p@invalid.netcom.com>
@ 2012-06-26 21:22   ` Robert A Duff
  2012-06-27 15:48     ` mjsilva
  0 siblings, 1 reply; 4+ messages in thread
From: Robert A Duff @ 2012-06-26 21:22 UTC (permalink / raw)


Dennis Lee Bieber <wlfraed@ix.netcom.com> writes:

> 	"Aiming" is the key word... According to the blog, the unsafe string
> manipulation functions are still part of the standard -- making it a
> matter of programmer discipline to avoid using them in favor of the
> newer "safer" routines.

Yeah, but it's worse than that.  Compiler warnings could remind people
to use the "safer" versions, but the "safer" routines aren't really
safe, because the programmer is responsible for keeping track of the
array length, and passing it in calls.

- Bob



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Watch out Ada, here comes the new and "safe" C  language
  2012-06-26 21:22   ` Robert A Duff
@ 2012-06-27 15:48     ` mjsilva
  0 siblings, 0 replies; 4+ messages in thread
From: mjsilva @ 2012-06-27 15:48 UTC (permalink / raw)


On Tuesday, June 26, 2012 2:22:29 PM UTC-7, Robert A Duff wrote:
> Dennis Lee Bieber <w...com> writes:
> 
> > 	"Aiming" is the key word... According to the blog, the unsafe string
> > manipulation functions are still part of the standard -- making it a
> > matter of programmer discipline to avoid using them in favor of the
> > newer "safer" routines.
> 
> Yeah, but it's worse than that.  Compiler warnings could remind people
> to use the "safer" versions, but the "safer" routines aren't really
> safe, because the programmer is responsible for keeping track of the
> array length, and passing it in calls.
 
Well sure, because all the evidence shows that humans are much better at such housekeeping than computers are.  I thought everybody knew that.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Watch out Ada, here comes the new and "safe" C  language
  2012-06-26 12:15 Watch out Ada, here comes the new and "safe" C language Nasser M. Abbasi
       [not found] ` <slsju7lfgekf2hqc3sq29lv12at6vgfe1p@invalid.netcom.com>
@ 2012-06-27 17:08 ` gautier_niouzes
  1 sibling, 0 replies; 4+ messages in thread
From: gautier_niouzes @ 2012-06-27 17:08 UTC (permalink / raw)


> "C11: A New C Standard Aiming at Safer Programming"

Surely it will be as successful as all previous attempts to "add" safety to C ;-).
Something that should be evident is that it brings nothing.
If you have an old car with faulty wheels, adding a fifth wheel won't make the car safer, whatever the quality of the new wheel.
_________________________ 
Gautier's Ada programming 
http://sf.net/users/gdemont



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-27 17:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-26 12:15 Watch out Ada, here comes the new and "safe" C language Nasser M. Abbasi
     [not found] ` <slsju7lfgekf2hqc3sq29lv12at6vgfe1p@invalid.netcom.com>
2012-06-26 21:22   ` Robert A Duff
2012-06-27 15:48     ` mjsilva
2012-06-27 17:08 ` gautier_niouzes

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