Re: [Rd] Julia

From: Duncan Murdoch <murdoch.duncan_at_gmail.com>
Date: Mon, 05 Mar 2012 19:33:10 -0500

On 12-03-05 6:58 PM, 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.

While literally true, the fact that you can't send an array by value, and must send the value of a pointer to it, kind of supports Bill's point: in C, you mostly end up sending arrays by reference.

Duncan Murdoch



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 06 Mar 2012 - 00:36:32 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 Tue 06 Mar 2012 - 09:20:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive