In Scala, how does one define a local parameter in the primary constructor of a class that is not a data member and that, for example, serves only to initialize a data membe
You can create temporary variables throughout the initialization of single class members like this:
class A(b:Int){ val m = { val tmp = b*b tmp+tmp } }