Bug 16063 - Prevent modify attributes of shared object
Summary: Prevent modify attributes of shared object
Status: NEW
Alias: None
Product: R
Classification: Unclassified
Component: Wishlist (show other bugs)
Version: R 3.1.2
Hardware: All All
: P5 enhancement
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2014-11-07 21:25 UTC by Jeroen
Modified: 2014-11-07 21:25 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen 2014-11-07 21:25:18 UTC
Based on this discussion [1,2,3] on r-devel:

I got bitten by the fact that ScalarLogical returns a shared object whereas ScalarInteger et all do not. Perhaps it would be possible to prevent setAttrib from changing attributes of a ScalarLogical object, or modifying shared objects in general.

[1] https://stat.ethz.ch/pipermail/r-devel/2014-October/070010.html
[2] https://stat.ethz.ch/pipermail/r-devel/2014-November/070026.html
[3] https://stat.ethz.ch/pipermail/r-devel/2014-November/070030.html