User loginNavigation | 
   
languages with call by value only (and maybe closures)?Hi, are there any languages where function call is only by value. If you pass a variable to a function you can only pass a copy of it. Inside of a function body you can mutate the values as desired. My thinking is that the called function is not going to have side effects on the state of the caller. More interesting, is it possible to have data structures in such a language? I'm sorry if this seems very vague, but I am not very sure what I'm thinking of either. Edit: also, what would the effect of closures in this type of language? Closures allow you to 'reach into' a returned value. var f = function() { By windozer at 2010-11-30 05:10 | LtU Forum | previous forum topic | next forum topic | other blogs | 6860 reads 
 | 
   Browse archives
 Active forum topics | 
  
Recent comments
13 hours 23 sec ago
1 day 17 hours ago
1 day 17 hours ago
6 days 18 hours ago
6 days 19 hours ago
6 days 19 hours ago
4 weeks 11 hours ago
4 weeks 5 days ago
4 weeks 6 days ago
5 weeks 11 hours ago