Bridge between Scilab and OCaml

What if variable doesn't exist ?
What you can do is write macros for standard checks so you can factor some code.
Check_if_var_exists (name) ; // may caml_raise_not_found ()
res = machintruc ()
Check_result (res, fun) ; // may caml_invalid_arg (__FUNCTION__)
etc.