Are extensions that disabled other extensions ok?

Can you give us an example of an extension that exhibits the behaviour you’ve mentioned?