Skip to content
Prev 57760 / 63421 Next

BUG?: A copy of base::`+` (primitive) is not a clone but a "pointer"

> For what it's worth, the current behavior seems to have begun starting 
    > with version 3.6.0. If I run in version 3.5.3:

    >> p1 <- .Primitive('+') ; p2 <- p1 ; attr(p1, "myattr") <- 1 ; p2

    > function (e1, e2)? .Primitive("+")

No.  What changed was just the *printing* !
(still in R 3.5.x) :
$myattr
[1] 3.141593