Mix 1/2 cup sugar, cornstarch, flour, and salt in a saucepan. Stir in milk gradually. Cook over medium heat, stirring, until mixture comes to a boil and thickens. Cook 2 minutes more. Add a little of this hot mixture to beaten egg yolks, then stir yolks into hot mixture. Cook 1 minute while stirring.