Assign method in Scala.

Posted by Lukasz Lew on Stack Overflow See other posts from Stack Overflow or by Lukasz Lew
Published on 2010-05-11T10:48:37Z Indexed on 2010/05/11 10:54 UTC
Read the original article Hit count: 341

When this code is executed:

var a = 24
var b = Array (1, 2, 3)
a = 42
b = Array (3, 4, 5)
b (1) = 42

I see three (five?) assignments here. What is the name of the method call that is called in such circumstances? Is it operator overloading?

© Stack Overflow or respective owner

Related posts about scala

Related posts about scala-2.8