Created
May 5, 2010 15:05
-
-
Save sadache/390901 to your computer and use it in GitHub Desktop.
Scala lazy val? not really.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lazy val xxxx={ println("initializing xxxx");1} | |
def getOne(x:Int):Int= 1 | |
println(getOne(xxxx)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
prints
initializing xxxx
1