// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package jwj

class CI {
    def moveto(n: Int): Unit = {
        println(s"moveto $n")
    }
}

class CW {
    var a = 0
    var b = ""
}

object DSL {
  def main(args: Array[String]): Unit = {
    val o = new CI()
    o.moveto(3)
    o moveto 3
    val v1 = 3 * 2 + 1
    val v2 = 3.*(2).+(1);
    println(s"$v1 $v2")
    val w = new CW()
    import w._
    a = 123
    b = "abc"
    println(s"$a $b")
  }
}
