[PATCH] variable.c: remove generic ivar support for special constants
variable.c: remove generic ivar support for special constants
Special constants are all frozen since [Feature #8923] and cannot
support ivars. Remove some unused code we had for supporting them.
Can somebody please sanity check this for me? Maybe I missed something,
but if not, I'll commit in a few days...
ChangeLog: add missing reference
[ruby-core:69441] [Feature #11208]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Updated by normalperson (Eric Wong) about 4 years ago
So the following check should be redundant.
if (rb_obj_frozen_p(obj)) rb_error_frozen("object");
It should be justif (rb_special_const_p(obj)) rb_bug("...");
I will rely on rb_check_frozen and add new tests:
I'll squash that onto my previous commit when I commit.