quite suddenly-and with a yearning that astonished him with its strength-he thought of those rare evenings of friendship , for they had been friends , in spite of their uneasy relationship as prisoner and gaoler ; had shared conversation , humor , experience , a commonality of mind that was rare indeed .