C considered harmful
Henry Spencer
henry-lqW1N6Cllo0sV2N9l4h3zg at public.gmane.org
Fri Dec 5 02:08:49 UTC 2003
On Thu, 4 Dec 2003, Peter Hiscocks wrote:
> So, it is an interesting challenge to the language writers to create
> something that has the power of the C language and still does (say)
> automatic checking of array bounds.
It's not that hard, if that is all you want. In particular, if you work
in C++ and *always* use its library string and vector types (which have
built-in bounds checks in many implementations) rather than C arrays, the
problem is more or less solved.
If one finds C++ unappealing, which is certainly a defensible position :-),
then there's more of a problem.
Henry Spencer
henry-lqW1N6Cllo0sV2N9l4h3zg at public.gmane.org
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list