reset password
Author Message
jpascua
Posts: 197
Posted 22:12 Oct 04, 2014 |

I read the slides but still did not understand the difference between the two. I may need some more examples.

dthomas5
Posts: 38
Posted 22:40 Oct 04, 2014 |

I think a "Call By Value" example is: def value= "String"

and a "Call By Name" example is: var value = 10;

Rinchan7
Posts: 56
Posted 01:35 Oct 05, 2014 |

I'm still learning but does this link from StackOverFlow help?

http://stackoverflow.com/questions/13337338/call-by-name-vs-call-by-value-in-scala-clarification-needed

jpascua
Posts: 197
Posted 16:04 Oct 05, 2014 |
Rinchan7 wrote:

Yes this helps. Thank you!