 Billy Wilder (qv) originally thought of the idea for the film  after seeing _Brief Encounter (1945)_ (qv) and wondering about the  plight of a character unseen in that film. Shirley MacLaine (qv)  was only given forty pages of the script because Wilder didnt want  her to know how the story would turn out. She thought it was because  the script wasnt finished.