public static void inheritSlots(Stella_Class renamed_Class) {
    { Cons slots = Cons.copyConsList(renamed_Class.classLocalSlots.theConsList);

      if (renamed_Class.classDirectSupers.emptyP()) {
      }
      else if (renamed_Class.multipleParentsP()) {
        { Surrogate supertype = null;
          Cons iter000 = renamed_Class.classDirectSupers.theConsList;

          for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
            supertype = ((Surrogate)(iter000.value));
            slots = slots.concatenate(Cons.copyConsList(((Stella_Class)(supertype.surrogateValue)).classAllSlots), Stella.NIL);
          }
        }
        slots = slots.reverse();
        slots.removeDuplicates();
        slots = slots.reverse();
      }
      else {
        { Cons parentslots = ((Stella_Class)(((Surrogate)(renamed_Class.classDirectSupers.first())).surrogateValue)).classAllSlots;

          slots = slots.concatenate(parentslots, Stella.NIL);
        }
      }
      renamed_Class.classAllSlots = slots;
    }
  }