Thomas Ploch schrieb: >> Ben Finney schrieb: >>> "John Machin" <[EMAIL PROTECTED]> writes: >>> >>>> Ben Finney wrote: >>>> >>>>> \ "...one of the main causes of the fall of the Roman Empire was | >>>>> `\ that, lacking zero, they had no way to indicate successful | >>>>> _o__) termination of their C programs." -- Robert Firth | >>>> An amusing .sig, but it doesn't address the root cause: As they had no >>>> way of testing for the end of a string, in many cases successful >>>> termination of their C programs would have been unlikely. >>> Yet historically proven: the 'imperium' process they were running >>> terminated many centuries ago. >>> >>> Or did it fork and exec a different process? >>> > > I rather stay with the metaphysics: > > > #include "metaphysics.h" > > static metaPower God; > > universe *makeUniverse(metaPower God) > { > if (!God) { > printf("Oops, no God available at the moment.Try again later!"); > return NULL; > } > > universe *everything; > > if (!(everything = malloc(sizeof(universe)))) { > God.mood = REALLY_BORED; > printf("God has no time to create a universe."); > return NULL; > } else { > return universe; > } > } > > > :-) > > Sorry, somehow had to do this. Please slap me (i like it, don't worry) > if it's totally stupid > >
soooo totally stupid! You forgot the main function! (not to mention you returned universe instead of everything) static int main(int argc, char **argv) { char *god_name; if (argc) god_name = argv[1]; else god_name = "YHWH"; metaPower God = getGodByName(god_name); universe *everything = makeUniverse(God); while (simulatePhysics(everything)); return 0; } -- http://mail.python.org/mailman/listinfo/python-list