Skip to content
Prev 9993 / 10988 Next

[Rcpp-devel] coercion NULL to vector

Le 18/04/2018 ? 17:31, Jeff Newmiller a ?crit?:
Well, written in this way yes. But I was referring more to the content 
than to the form. If you write as.numeric(x) and at some run-time point 
x become NULL, the code won't stop with an error. It will silently 
coerce NULL to numeric(0). Analogously in what I propose, if you write 
f(vec x) and at some call x is NULL, f would continue to work as if 
called with f(numeric(0)).
No sure to get your point here but never mind.

Serguei.