Combine sugar, flour, cornstarch and salt in top of double boiler. Mix with wooden spoon. Blend in milk gradually, then add egg yolks. Add butter.
Place over rapidly boiling water so pan is touching water. Cook until thick and smooth, about 7 minutes, stirring constantly. Scrape down sides of pan frequently.