Manual:DIL Manual/quit
Jump to navigation
Jump to search
Contents
quit
Procedure. Ends the program for good.
quit;
The program stops at once and is removed from its unit. It doesn't run again; a new copy only comes with a new unit (a reset) or a dilcopy.
Notes
- Inside a procedure or function called as
name@zone(...),quitends the whole program, the caller included. Usereturnto leave only the called template. - Its secures, interrupts and
priorityend with it. - A
blockbeforequitstill blocks the event. - A program that should run again for the next event goes back to waiting (
gototo a label before itswait) instead.
Example
dilbegin follow_note();
code
{
if (not self.master)
quit;
act("You now follow $3n.", A_ALWAYS, self, null, self.master, TO_CHAR);
quit;
}
dilend
Does its one job and ends; with no one to follow it ends at once. Adapted from basemove.zon.