Displaying 2 results from an estimated 2 matches for "r_compute_identical".
2016 May 20
2
identical on closures
...amespace("Matrix")),
ignore.environment=T)
[1] TRUE
I've looked at the code in identical.c and for closures it seems to
compare the FORMALS and the BODY_EXPR, so why does the first example not
return TRUE as surely the formals and body are identical?
case CLOSXP:
return(R_compute_identical(FORMALS(x), FORMALS(y), flags) &&
R_compute_identical(BODY_EXPR(x), BODY_EXPR(y), flags) &&
(IGNORE_ENV || CLOENV(x) == CLOENV(y) ? TRUE : FALSE) &&
(IGNORE_BYTECODE || R_compute_identical(BODY(x), BODY(y),
flags))
);
R-3.2.4...
2016 May 20
2
identical on closures
...TRUE
>>
>> I've looked at the code in identical.c and for closures it seems to
>> compare the FORMALS and the BODY_EXPR, so why does the first example not
>> return TRUE as surely the formals and body are identical?
>>
>> case CLOSXP:
>> return(R_compute_identical(FORMALS(x), FORMALS(y), flags) &&
>> R_compute_identical(BODY_EXPR(x), BODY_EXPR(y), flags) &&
>> (IGNORE_ENV || CLOENV(x) == CLOENV(y) ? TRUE : FALSE) &&
>> (IGNORE_BYTECODE || R_compute_identical(BODY(x), BODY(y),
>>...