vm/builtin/task.cpp
/* Find +name+ by:
   *   looking in the up lexical scope,
   *   looking in the superclass's of the current lexical module,
   *   looking in Object.
   *
   * Returns the LookupTableAssociation object used to store the constant
   */
Find +name+ by:
looking in the up lexical scope,
looking in the superclass's of the current lexical module,
looking in Object.

Returns the LookupTableAssociation object used to store the constant
Find + name + by : looking in the up lexical scope looking in the superclass ' s of the current lexical module looking in Object . Returns the LookupTableAssociation object used to store the constant
LookupTableAssociation* Task::const_get_association(Symbol* name, bool* found) {
    StaticScope *cur;
    LookupTableAssociation* result;
    *found = false;
    cur = active_->cm()->scope();
    while(!cur->nil_p()) {
      result = cur->module()->get_const_association(state, name, found);
      if(*found) return result;
      if(cur->module() == G(object)) break;
      cur = cur->parent();
    }
    Module* mod = active_->cm()->scope()->module();
    while(!mod->nil_p()) {
      result = mod->get_const_association(state, name, found);
      if(*found) return result;
      mod = mod->superclass();
    }
    result = G(object)->get_const_association(state, name, found);
    if(*found) return result;
    return reinterpret_cast<LookupTableAssociation*>(Qnil);
  }
LookupTableAssociation * Task :: const_get_association ( Symbol * name , bool * found ) { StaticScope * cur ; LookupTableAssociation * result ; * found = false ; cur = active_ -> cm ( ) -> scope ( ) ; while ( ! cur -> nil_p ( ) ) { result = cur -> module ( ) -> get_const_association ( state , name , found ) ; if ( * found ) return result ; if ( cur -> module ( ) == G ( object ) ) break ; cur = cur -> parent ( ) ; } Module * mod = active_ -> cm ( ) -> scope ( ) -> module ( ) ; while ( ! mod -> nil_p ( ) ) { result = mod -> get_const_association ( state , name , found ) ; if ( * found ) return result ; mod = mod -> superclass ( ) ; } result = G ( object ) -> get_const_association ( state , name , found ) ; if ( * found ) return result ; return reinterpret_cast < LookupTableAssociation * > ( Qnil ) ; }
Find +name+ by:
   looking in the up lexical scope,
   looking in the superclass's of the current lexical module,
   looking in Object.
Find + name + by : looking in the up lexical scope looking in the superclass ' s of the current lexical module looking in Object .
/* Lastly, check Object specificly */