How did societies in which the first born of a family was the natural successor/heir handle twin birth? Was it codified somehow or dealt with on a case by case basis?

by ignorediacritics
WelfOnTheShelf

I can't speak for any other societies, but I answered a similar question a few months ago, for medieval Europe specifically: How did medieval European monarchs handle twins?