The Pali Cannon, created in Sri Lanka between 600 BC and a hundred BC, states that sexual relations, whether of homosexual or of heterosexual nature, is forbidden during the monastic code, and states that any functions of soft homosexual sex (which include masturbation and interfumeral intercourse) will not entail a punishment but has to be confess