catch

mud/2.4.5/doc/efun/catch · 365 B

From the archive 2.4.5-for-1.1.tgz

Download the archive   « Back to the archive contents

catch(expr)

Evaluate 'expr'. If there is no error, 0 is returned. If there is a
standard error, a string (with a leading '*') will be returned.

The function throw(value) can also be used to immediately return any value,
except 0.

The catch() is somewhat costly, and should not be used anywhere. Rather,
use it at places where an error would destroy consistency.

Site Stats

Snippets: 1791
Codebases: 571