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 : process.exit (0)

parameter 0 passed to exit Going> method here though it works if I pass any other integer or does not pass a parameter? 0

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!

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -