On Wednesday 17 May 2017 05:12 PM, Max Leske wrote:
Yes. #exitSuccess does a bit more:
1. return an exit code to the command line
2. print a message
3. check if the session has changed
4. allows for overriding and special handling of the Exit exception.
You should not assume that nobody needs that :)
Thanks for the quick clarification. I am trying to understand the
difference between using quit and save/quit. exitSuccess never gets
called when both options "--save --quit" are given. Shouldn't the code
handle this case as well:
(self hasOption: 'save')
ifTrue: [ Smalltalk snapshot: true andQuit: false ].
(self hasOption: 'quit')
ifTrue: [ self exitSuccess ].
Regards .. Subbu