Use API setter/unsetter for S4 objects#1940
Use API setter/unsetter for S4 objects#1940MichaelChirico wants to merge 1 commit intor-lib:mainfrom
Conversation
It looks it only makes a copy when the object might be shared, which seems right. Do you know what the |
|
Per
Can't say I fully understand the meaning there, nor does the source mean much to me: Here's the three callsites in r-devel: https://github.com/r-devel/r-svn/blob/a068a0f52b9ae871212779b2c1571a999f23ef81/src/main/arithmetic.c#L701 I also only see a handful of usages on CRAN, one of them sets https://github.com/search?q=org%3Acran+%2FasS4%5C%28%2F+lang%3AC%2B%2B&type=code |
|
It looks like when complete is set it tries to return an internal slot in The It seems like setting complete to 0 will be the least disruptive change though? |
I haven't checked at all, sorry :) I only saw #1933 linked to a related bug on {data.table} and wanted to share how we're approaching removing |
Part of #1933.
This passes tests for me. I haven't explored any performance implications (this can induce a copy, right?).