Re: How important is software maintenance?



Richard Heathfield <rjh@xxxxxxxxxxxxxxx> writes:

Pascal Bourguignon said:

Any program starts as:

int main(void){
return(0);
}

Not on my watch, it doesn't. For one thing, unnecessary parentheses
should be eschewed. More importantly, most of the programs I write
nowadays make heavy use of libraries that I wrote some time ago, so
there's a case for saying that main() is how the program ends, rather
than how it starts.

So the second version is:

#include <lib1.h>
#include <lib2.h>
#include <lib3.h>

int main(void){
lib1_init();
lib2_init();
lib3_init();
return(0); // I like parentheses! ;-)
}


--
__Pascal Bourguignon__ http://www.informatimago.com/

"Remember, Information is not knowledge; Knowledge is not Wisdom;
Wisdom is not truth; Truth is not beauty; Beauty is not love;
Love is not music; Music is the best." -- Frank Zappa
.



Relevant Pages

  • Re: Difference between #(lambda ...) and (lambda ...) ?
    ... (let ((real-args (process-args args)) ... Information is not knowledge; Knowledge is not Wisdom; ... Wisdom is not truth; Truth is not beauty; Beauty is not love; ...
    (comp.lang.lisp)
  • Re: Writing Lisp programs for unix
    ... compile, ... Information is not knowledge; Knowledge is not Wisdom; ... Wisdom is not truth; Truth is not beauty; Beauty is not love; ...
    (comp.lang.lisp)
  • Re: Grafik an der Wand?
    ... Knowledge is not wisdom. ... Truth is not beauty. ... Beauty is not love. ...
    (de.etc.sprache.deutsch)
  • Re: buch zum thema sprache
    ... Knowledge is not wisdom. ... Truth is not beauty. ... Beauty is not love. ...
    (de.etc.sprache.deutsch)
  • Re: Zeitreisen
    ... Zum Trost hier einige diese verpasste Karriere betreffende Artikel von ... Knowledge is not wisdom. ... Truth is not beauty. ...
    (de.rec.buecher)