O Plameras wrote: > I can modify my C-program to remove that problem in the ff. So, > as to whether a C-program is more prone to error relies on the > manner and style of coding and not intrinsic to C-language. Don't > you think ?
I don't think its specific to the C language, I think its intrinsic to all looping operations in imperative programming. All you've done is replace the for loop with a while loop. You are still setting the start condition and the end condition for the looping operation. These are things the compiler (or rather the language) expect you to do. By contrast, the O'caml mapi function automatically figures out the start and end conditions from what it knows about the array. Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "Religion is a magic device for turning unanswerable questions into unquestionable answers." -Art Gecko, Wombat Discord-1, 128649 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
