search for: body_expr

Displaying 4 results from an estimated 4 matches for "body_expr".

2016 May 20
2
identical on closures
...det), the following is checked (in library.checkConflicts): > identical(get("det", baseenv()), get("det", asNamespace("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(...
2016 May 20
2
identical on closures
...): >> >> > identical(get("det", baseenv()), get("det", asNamespace("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) &...
2003 Oct 08
1
R-1.8.0 is released
...rlier versions, and is not guaranteed to remain unchanged.) o The header R_ext/Mathlib.h has been removed. It was replaced by Rmath.h in R 1.2.0. o PREXPR has been replaced by two macros, PREXPR for obtaining the expression and PRCODE for obtaining the code for use in eval. The macro BODY_EXPR has been added for use with closures. For a closure with a byte compiled body, the macro BODY_EXPR returns the expression that was compiled; if the body is not compiled then the body is returned. This is to support byte compilation. o Internal support for executing byte compiled code has...
2003 Oct 08
1
R-1.8.0 is released
...rlier versions, and is not guaranteed to remain unchanged.) o The header R_ext/Mathlib.h has been removed. It was replaced by Rmath.h in R 1.2.0. o PREXPR has been replaced by two macros, PREXPR for obtaining the expression and PRCODE for obtaining the code for use in eval. The macro BODY_EXPR has been added for use with closures. For a closure with a byte compiled body, the macro BODY_EXPR returns the expression that was compiled; if the body is not compiled then the body is returned. This is to support byte compilation. o Internal support for executing byte compiled code has...