 This was the case in South Africa (which ceased to be a member of the Commonwealth immediately upon becoming a republic), Malta, Trinidad and Tobago, India and Vanuatu.In many of these examples, the last Governor-General became the first president.Such was the case with Sri Lanka and Pakistan.