>>>>> "D" == Dave Thomas <Dave / thomases.com> 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