[ruby-core:69450] Re: [Ruby trunk - Feature #11208] [PATCH] variable.c: remove generic ivar support for special constants

From: Eric Wong <normalperson@...>
Date: 2015-06-02 20:17:20 UTC
List: ruby-core #69450
ko1@atdot.net wrote:
> 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("...");

I will rely on rb_check_frozen and add new tests:

http://80x24.org/spew/m/e66c803892085c843b84cc6f35d4d96c83556dc1.txt

I'll squash that onto my previous commit when I commit.

In This Thread

Prev Next