// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
class Num(v : Int) {
    def iv = v
    def +(v : Int) = new Num(iv + v)
    def -(v : Int) = new Num(iv - v)
    def *(v : Int) = new Num(iv * v)
    def /(v : Int) = new Num(iv / v)
    override def toString() = iv.toString()
}

object OpOvl {
    def main(args: Array[String]) {
        val o = new Num(123)
        println(o + 456)
    }
}
