From: Dave Thomas Date: 2000-06-12T09:40:15-05:00 Subject: [ruby-talk:03301] Re: BUG or something? ts writes: > >>>>> "D" == Dave Thomas writes: > > D> But what would you check? Would you disallow the assignment if the > D> object currently referenced by a $ global is frozen? That would be > > rb_str_setter can test if the object is frozen ($ global or not) That would be a totally different semantic for freeze, though. Everywhere else, it's associated with the object, whereas here it applies to the variable d = "dave" d.freeze d[1] = 'i' # fails d = "walter" # OK $/ = "dave" $/.freeze $/[1] = 'i' # fails $/ = "walter" # fails? I don't think I like that. Dave