[OT] Dennis Ritchie dies at 70

A

Arne Vajhøj

No he didn't.


No it isn't.

It explains what is known about the question and why it is so.

That is the best possible reply.

When something is a best possible reply I would call it
an answer.

Arne
 
A

Arne Vajhøj

15.10.2011 01:09, Arne Vajhøj kirjoitti:
Implicit type. Tsk tsk.

The point was K&R C

main()
int argc;
char *argv[];
{
printf("<S>\n");
exit(0);
}

The arguments is a nice R touch.

Hmm - digging in memory - shouldn't i be:

main(argc, argv)
int argc;
char *argv[];

?

It is a different syntax that is perfectly fine.

The default int return type is just ugly.

Arne
 
T

Tom Anderson

It explains what is known about the question and why it is so.

That is the best possible reply.

When something is a best possible reply I would call it an answer.

I wouldn't. At least, if you mean "best possible reply that someone could
make here and now", rather than "best possible reply that we can imagine
someone making".

It seems rather nihilistic to adopt the former definition. "How did the
universe begin?", "We don't know.", and there's an answer!

tom

--
 
A

Arne Vajhøj

But it's *not* the best possible reply, unless you believe the man's
C.O.D. is known to no-one and never will be known.

If the cause of death has not been made public yet, then
even those that know could not post a a better answer.

The best answer today may not be the best answer tomorrow. But
that does not make it possible to provide a better answer today.

Arne
 
A

Arne Vajhøj

I wouldn't. At least, if you mean "best possible reply that someone
could make here and now", rather than "best possible reply that we can
imagine someone making".

It seems rather nihilistic to adopt the former definition. "How did the
universe begin?", "We don't know.", and there's an answer!

I would definitely consider "according to source XX then we don't know
how the universe began" to be an answer.

And that is a better analogy to this context than "We don't know".

Arne
 
P

Paul Cager

'Palin becomes frustrated with this, insisting that he paid for an argument, and "an argument is an intellectual process, while contradiction is just the automatic gainsaying of anything the other person says."'

"No it isn't."
 
B

B1ll Gat3s

If the cause of death has not been made public yet, then
even those that know could not post a a better answer.

Of course they could. How do you think they'd make it public?
The best answer today may not be the best answer tomorrow. But
that does not make it possible to provide a better answer today.

Did I claim it was, on any particular day?
 
D

David Lamb

Combined with<[email protected]> we have now

main(argc, argv)
int argc;
char *argv[];
{
printf("Goodbye, World.\n");

#ifdef ATHEIST
exit(0);
#else
return 0;
#endif
}

Can this be agreed upon?

I suppose the pedants among us might argue for

#DEFINE RITCHIE_LIFE_STATUS 0
main(argc, argv)
int argc;
char *argv[];
{
printf("Goodbye, World.\n");

#ifdef ATHEIST
exit(RITCHIE_LIFE_STATUS);
#else
return RITCHIE_LIFE_STATUS;
#endif
}
 
G

Gene Wirchenko

[snip]
I suppose the pedants among us might argue for

#DEFINE RITCHIE_LIFE_STATUS 0

0 is used as a return code for success. I think that
EXIT_FAILURE would be a more descriptive return value.
main(argc, argv)
int argc;
char *argv[];
{
printf("Goodbye, World.\n");

#ifdef ATHEIST
exit(RITCHIE_LIFE_STATUS);
#else
return RITCHIE_LIFE_STATUS;
#endif
}

Sincerely,

Gene Wirchenko
 
T

Tom Anderson

Combined with<[email protected]> we have now

main(argc, argv)
int argc;
char *argv[];
{
printf("Goodbye, World.\n");

#ifdef ATHEIST
exit(0);
#else
return 0;
#endif
}

Can this be agreed upon?

I suppose the pedants among us might argue for

#DEFINE RITCHIE_LIFE_STATUS 0
main(argc, argv)
int argc;
char *argv[];
{
printf("Goodbye, World.\n");

#ifdef ATHEIST
exit(RITCHIE_LIFE_STATUS);
#else
return RITCHIE_LIFE_STATUS;
#endif
}

Oh, definitely. Makes it much more reusable.

tom
 
J

Jan Burse

Volker said:
Combined with<[email protected]> we have now

main(argc, argv)
int argc;
char *argv[];
{
printf("Goodbye, World.\n");

#ifdef ATHEIST
exit(0);
#else
return 0;
#endif
}

Can this be agreed upon?

return(0);

So that the newbee thinks return is a function.

Bye
 
D

Daniel Pitts

Volker said:
Combined with<[email protected]> we have now

main(argc, argv)
int argc;
char *argv[];
{
printf("Goodbye, World.\n");

#ifdef ATHEIST
exit(0);
#else
return 0;
#endif
}

Can this be agreed upon?

return(0);

So that the newbee thinks return is a function.

Bye


Actually, I would just suggest this evil alternative:

#ifdef ATHEIST
#define return exit
#endif

main(argc, argv)
int argc;
char *argv[];
{
printf("Goodbye, World.\n");
return(0);
}

Yes, I can be evil when I want to be.
 
A

Arne Vajhøj

Of course they could. How do you think they'd make it public?

If and when they get authorization to make it public then they
can tell.
Did I claim it was, on any particular day?

No.

But you can obviously only get todays answer today.

Arne
 
B

B1ll Gat3s

If and when they get authorization to make it public then they
can tell.

They *can* tell anything they know. Perhaps they *may* not, according to
some rule or regulation, but they *can*.
No.

But you can obviously only get todays answer today.

But I didn't demand an answer by any particular time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top