Actions
Bug #3783
closedReplace Calls to rb_error_frozen() with rb_check_frozen()
Bug #3783:
Replace Calls to rb_error_frozen() with rb_check_frozen()
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-09-02 trunk 29167) [i686-linux]
Backport:
Description
=begin
This patch replaces lines of the form:
if (OBJ_FROZEN(obj)) rb_error_frozen("object");
with:
rb_check_frozen(obj);
This is simpler, and produces error messages that are more consistent and precise.
(It feels wrong cluttering the bug tracker with things like this. Would they be better posted to the list or sent as a "pull" request?)
=end
Files
Actions