Posted by: Wisp
« on: November 26, 2018, 12:17:36 PM »TRY is generally not safe without RERAISE because WeiDU has little exception safety. If you do something, state is changed (this can be internal state not visible to TP2), an error occurs which you catch and from which you continue and state may inappropriately remain changed, instead of the change being reversed. This may not necessarily be "serious", for instance, a file handle might remain open, but it has a potential of causing more or less subtle problems. In the specific case of testing for a function, it is safe, because launching an undefined function has no side-effects before the error occurs.