Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:= could change calling body and variable in calling scope #3891

Merged
merged 9 commits into from Sep 18, 2019

Conversation

mattdowle
Copy link
Member

@mattdowle mattdowle commented Sep 18, 2019

Closes #3890
Similar area as #3768

The strategy was to reuse the newly centralized as.data.table.list more in that section, as the comments there alluded to. Doing that revealed another unrelated difference to 1.12.2 in the auto naming numbers when NULL items are present in the list. Restored the 1.12.2 behavior on that in this PR too and added test.

The risk now is more slow downs since as.data.table.list() copies more, currently. Until #617 is done. There's a big TODO in as.data.table.list() for that. The strategy in this release is to get everything central and going through as.data.table.list first. This has eked out the edge cases and plenty of tests have been added via revdep testing too. So now we're in a better place to do #617.

@mattdowle mattdowle added this to the 1.12.4 milestone Sep 18, 2019
@codecov
Copy link

codecov bot commented Sep 18, 2019

Codecov Report

Merging #3891 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3891      +/-   ##
==========================================
- Coverage   99.42%   99.42%   -0.01%     
==========================================
  Files          72       72              
  Lines       13502    13494       -8     
==========================================
- Hits        13425    13417       -8     
  Misses         77       77
Impacted Files Coverage Δ
R/as.data.table.R 100% <100%> (ø) ⬆️
R/data.table.R 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ad8ca4...055e683. Read the comment docs.

@mattdowle mattdowle merged commit 230fd40 into master Sep 18, 2019
@mattdowle mattdowle deleted the assign_body branch September 18, 2019 19:55
@mattdowle mattdowle mentioned this pull request Sep 19, 2019
25 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assignment operator := changes the body of a wrapper function
2 participants