I mean, remembering that fortran doesnt have excep...
# kotlin-native
g
I mean, remembering that fortran doesnt have exception semantics, what can I do when it invokes a language that does?
e
I’d suggest to catch all Java exceptions on Java side and pass them back to fortran code via some other means (error code, special result, etc)
g
Yeah that's what we're doing, so our users should be fine, what I'm really looking for is something that improves dev quality of life. Honestly what I might do update JNA such that unhandled exceptions are logged and a
System.exit()
call is made. Saves a debugging dev from the torrent of unrelated information hes about to get.
e
Good point. Makes sense