DragonFly commits List (threaded) for 2004-12
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: cvs commit: src/usr.bin/rev
Joerg Sonnenberger wrote:
It's not about supporting it or not. It works fine either way.
The advantage is that exit() pretty much means exactly that, exit the
program and not return from some mysterious function. The advantage of
return is that it is the normal way of leaving a stack frame. Both
have there uses.
So main() is a mysterious function?
It's nice when debugging code to be able to tell how many operations
already failed :)
Except in this case the number of operations is irrelivant. You get 1 or
0 back from the program. You may as well add the code yourself if you
ever need to debug it.
- Jason
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]