The Pali Cannon, written in Sri Lanka involving 600 BC and 100 BC, states that sexual relations, no matter if of homosexual or of heterosexual character, is forbidden in the monastic code, and states that any functions of soft homosexual sex (which include masturbation and interfumeral sex) will not entail a punishment but needs to be confessed for