evil.R icon indicating copy to clipboard operation
evil.R copied to clipboard

A Truly Evil True

Open brodieG opened this issue 6 years ago • 0 comments

Based off of @wrathematics observation:

> library(inline)
> T <- cfunction(body='
+   SEXP res = allocVector(LGLSXP, 1);
+   LOGICAL(res)[0] = 2;
+   return res;'
+ )()
> T
[1] TRUE
> T == TRUE
[1] FALSE

brodieG avatar Oct 20 '17 01:10 brodieG