Error checks in FFI functions

Mick Jordan
 

What is the expectation on error checking arguments to native functions? For example:

rffi.CAR(1)
*** caught segfault ***
address 0x1, cause 'memory not mapped'

because CAR just assumes it's a list.


But other functions throw errors or check their args to the extent that they at least avoid a crash.

Mick

Join Rconsortium-wg-api@lists.r-consortium.org to automatically receive all group messages.