It must have come as quite a surprise to many that Cameron promised a straight in or out referendum.