r-lib / cpp11

cpp11 helps you to interact with R objects using C++ code.
https://cpp11.r-lib.org/
Other
199 stars 46 forks source link

Show error if C++ function has default arguments. #221

Open alyst opened 3 years ago

alyst commented 3 years ago

I think it is fine that the default arguments are not supported (#4, #162). But it is a bit confusing that there are no diagnostic messages about such functions, and the problem surfaces only at the linking time (also the linker errors about missing functions are cryptic).

Would be nice to stop with an error if default arguments are encountered.

jimhester commented 3 years ago

I agree, having a more informative error during registration would help a lot.