About 100 years after Andrew Carnegie and John D. Rockefeller Sr., established foundations and other endowed institutions to be named for themselves, Warren Buffett, in a stroke that caught the attention of much of the world, announced he would give away $31 billion, over a period of years, to a foundation named not for himself but for two other major donors — Bill and Melinda Gates.