Re: [Rd] Julia

From: Nicholas Crookston <>
Date: Mon, 05 Mar 2012 16:54:05 -0800

There are many experts on this topic. I'll keep this short.

Newer Fortran Languages allow for call by value, but call by reference is the typical and historically, the only approach (there was a time when you could change the value of 1 to 2!).

C "only" calls by value except that the value can be a pointer! So, havoc is just a * away.

I'm very pleased to be on this list and read the discussion. Thank you Douglas Bates for sending the first message.

I like R and will continue to use it. However, I also think that strict "call by value" can get you into trouble, just trouble of a different kind. I'm not sure we will ever yearn for "Julia ouR-Julia", but it is sure fun to think about what might be possible with this language. And having fun is one key objective.

Nick Crookston

2012/3/5 oliver <>:
> On Mon, Mar 05, 2012 at 03:58:59PM -0800, Hervé Pagès wrote:
>> Hi Oliver,
>> On 03/05/2012 09:08 AM, oliver wrote:
>> >On Mon, Mar 05, 2012 at 03:53:28PM +0000, William Dunlap wrote:
>> >>I haven't used Julia yet, but from my quick reading
>> >>of the docs it looks like arguments to functions are
>> >>passed by reference and not by value, so functions
>> >>can change their arguments.  My recollection from when
>> >>I first started using S (in the course of a job helping
>> >>profs and grad students do statistical programming, c. 1983)
>> >>is that not having to worry about in-place algorithms changing
>> >>your data gave S a big advantage over Fortran or C.
>> >[...]
>> >
>> >
>> >C also uses Call-by-Value.
>> C *only* uses Call-by-Value.
> [...]
> Yes, that's what I meant.
> With "also" I meant, that it uses call-by-value, as some
> other languages also do.
> Ciao,
>   Oliver
> ______________________________________________
> mailing list
> mailing list Received on Wed 07 Mar 2012 - 09:16:59 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 07 Mar 2012 - 09:40:26 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive