void test_clear() { Selector* sel = Selector::lookup(state, state->symbol("foo")); SendSite* ss = SendSite::create(state, sel->name()); sel->associate(state, ss); sel->clear(state); }
void Selector::clear_by_name(STATE, Object* name) { Selector* sel = (Selector*)G(selectors)->fetch(state, name); if(sel->nil_p()) return; sel->clear(state); }