Selector* Selector::lookup(STATE, Object* name) { Selector* sel = (Selector*)G(selectors)->fetch(state, name); if(!sel->nil_p()) return sel; sel = Selector::create(state, name); G(selectors)->store(state, name, sel); return sel; }
void Selector::clear_by_name(STATE, Object* name) { Selector* sel = (Selector*)G(selectors)->fetch(state, name); if(sel->nil_p()) return; sel->clear(state); }