In a medium saucepan, stir together the sugar, gelatin and salt. Mix in the milk. Cook over medium heat until gelatin is dissolved and clear. Remove from heat and chill until partially set. Stir once and add vanilla. Fold in the coconut and heavy cream. Pour into a pudding mold. Chill until firm, about 4 hours.
To make raspberry sauce: Pour raspberries with juice, into a medium saucepan. Cook over medium heat until boiling. Mix together water and cornstarch; stir into the raspberries. Boil rapidly for one minute, stirring constantly. Cool before serving with pudding.