ruby - Why do we pass 0 as a parameter to "exit"? -
In the book Learning Ruby hardly , I got a syntax to exit the program : parameter Why is this an 'exit code' important? . In some cases this exhaust code has special meaning (see for example) You can pass whatever you want, if not caught after code If so, then there will be no effect. Here everything is fine! process.exit (0)
0 passed to
exit Going> method here though it works if I pass any other integer or does not pass a parameter?
0
Comments
Post a Comment