From: ts Date: 2000-06-12T15:39:43+02:00 Subject: [ruby-talk:03291] Re: BUG or something? >>>>> "D" == Dave Thomas writes: >> $/.freeze # prevent changing from defaults D> That freezes the object referenced by the $/ variable. Variables The object is frozen rb_rs = rb_default_rs = rb_str_new2("\n"); rb_output_rs = Qnil; rb_global_variable(&rb_default_rs); OBJ_FREEZE(rb_default_rs); /* avoid modifying RS_default */ rb_define_hooked_variable("$/", &rb_rs, 0, rb_str_setter); D> themselves cannot be frozen. This can be tested in rb_str_setter, no ? Guy Decoux