[Vala] Catch divide by zero



Is there a simple way to catch and propagate a divide by zero error in
Vala?  In C I can use a setjmp to define a catch point, and then do a
suitable jongjmp from a signal handler.  However this mechanism doesn't
appear to be available to the Vala programmer, so what can be done?

Regards,

Andrew Lees.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]