Re: [julia-users] Pass by reference

2015-02-25 Thread David Higgins
Thanks Stefan! That really helps. I don't know if you guys have such a thing as a language specification document (I'm guessing the language is too much in evolution at present for that to be the case), but if you do I'd be happy to work towards porting bits of it to the main documentation.

Re: [julia-users] Pass by reference

2015-02-17 Thread Stefan Karpinski
See: http://julia.readthedocs.org/en/latest/manual/faq/#i-passed-an-argument-x-to-a-function-modified-it-inside-that-function-but-on-the-outside-the-variable-x-is-still-unchanged-why http://julia.readthedocs.org/en/latest/manual/faq/#why-does-x-y-allocate-memory-when-x-and-y-are-arrays On Tue,

Re: [julia-users] Pass by reference

2015-02-17 Thread Jiahao Chen
Please DO open a pull request with suggested edits to the documentation! Thanks, Jiahao Chen Staff Research Scientist MIT Computer Science and Artificial Intelligence Laboratory On Tue, Feb 17, 2015 at 11:59 AM, David Higgins daithiohuig...@gmail.com wrote: Thanks Stefan, I did actually see

Re: [julia-users] Pass by reference

2015-02-17 Thread Stefan Karpinski
The confusion stems from this: *assignment and mutation are not the same thing.* *Assignment. *Assignment looks like `x = ...` – what's left of the `=` is a variable name. Assignment changes which object the variable `x` refers to (this is called a variable binding). It doesn't mutate any