Exemplo 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;
  }
Exemplo 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);
  }