Skip to content
Prev 14148 / 63461 Next

(inappropriate) manipulation of expression objects causes segfault (PR#7326)

deepayan@stat.wisc.edu writes:
Right. The NA is not important; foo[2] <- 1 crashes R just as
effectively. We should likely either give an error or demote [ to [[.
The latter is what happens with lists, and expressions are basically
just list of call objects (or names or constants). To wit:
[[1]]
[1] 1

[[2]]
[1] 1

[[3]]
[1] 3