main

Mix in a main function, which should be adequate for most end-user programs.

In debug mode (-debug), this is a pass-through. Otherwise, this will catch uncaught exceptions, and display only the message (sans stack trace) to the user - on standard error, or, for Windows GUI programs, in a message box.

mixin template main (
alias realMain
) {}

Meta