Esempio n. 1
0
  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;
  }
Esempio n. 2
0
  void Selector::clear_by_name(STATE, Object* name) {
    Selector* sel = (Selector*)G(selectors)->fetch(state, name);
    if(sel->nil_p()) return;

    sel->clear(state);
  }