The author of The Prime of Miss Jean Brodie often spoke of a woman whose life mirrored her own but ended tragically.