Re: where exactly c++,c fail and Ada gets thru'



Keith Thompson wrote:

I haven't looked at the coding standards document in question.
Possibly it just forbids the use of array syntax to represent what's
really a pointer parameter. Forbidding pointer parameters would be a
serious problem; much of the standard library does this, and it's the
normal way to achieve the effect of passing an array.

It's also the source for Ritchie's observation that "C's solution to this [variable-sized array parameters] has real problems, and people who are complaining about safety definitely have a point."

--
Jeff Carter
"Why don't you bore a hole in yourself and let the sap run out?"
Horse Feathers
49
.