Logo

Programming-Idioms

History of Idiom 87 > diff from v19 to v20

Edit summary for version 20 by steenslag:
[Ruby] Added comment

Version 19

2016-12-24, 21:22:20

Version 20

2016-12-24, 21:24:48

Idiom #87 Stop program

Exit immediatly.
If some extra cleanup work is executed by the program runtime (not by the OS itself), describe it.

Idiom #87 Stop program

Exit immediatly.
If some extra cleanup work is executed by the program runtime (not by the OS itself), describe it.

Code
exit
Code
exit
Comments bubble
Just prior to termination, Ruby executes any at_exit functions and runs any object finalizers.
Doc URL
http://ruby-doc.org/core-2.1.1/Kernel.html#method-i-exit
Doc URL
http://ruby-doc.org/core-2.1.1/Kernel.html#method-i-exit