From: ko1@... Date: 2015-06-02T03:27:47+00:00 Subject: [ruby-core:69442] [Ruby trunk - Feature #11208] [PATCH] variable.c: remove generic ivar support for special constants Issue #11208 has been updated by Koichi Sasada. Good patch. Before generic_ivar_set(), frozen check is already done. So the following check should be redundant. > if (rb_obj_frozen_p(obj)) rb_error_frozen("object"); It should be just > if (rb_special_const_p(obj)) rb_bug("..."); ---------------------------------------- Feature #11208: [PATCH] variable.c: remove generic ivar support for special constants https://bugs.ruby-lang.org/issues/11208#change-52711 * Author: Eric Wong * Status: Open * Priority: Normal * Assignee: ---------------------------------------- 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... ---Files-------------------------------- 0001-variable.c-remove-generic-ivar-support-for-special-c.patch (2.79 KB) -- https://bugs.ruby-lang.org/