From takahashi.kohske at gmail.com  Sat Jul 14 03:23:50 2012
From: takahashi.kohske at gmail.com (Kohske Takahashi)
Date: Sat, 14 Jul 2012 10:23:50 +0900
Subject: [Rd] Modifying a list: what gets copied?
In-Reply-To: <CABdHhvFEwzO5s3vmGbmEKNMKSY3vTOkUXXcn1SdTYkrpHimHxg@mail.gmail.com>
References: <CABdHhvFEwzO5s3vmGbmEKNMKSY3vTOkUXXcn1SdTYkrpHimHxg@mail.gmail.com>
Message-ID: <CAC-jPZqNn_Stnj=YYzr1pveDp-WwtdQVxZQtd=Y5z8axwJn8bQ@mail.gmail.com>

> list_u <- function(x) z$a <- 1L

Note that the argument name is `x` while you are using `z` inside the function.
I'm not sure if this is the reason, though.

kohske

-- 
Kohske Takahashi <takahashi.kohske at gmail.com>

Assistant Professor,
Research Center for Advanced Science and Technology,
The University of  Tokyo, Japan.
http://www.fennel.rcast.u-tokyo.ac.jp/profilee_ktakahashi.html



[Rd] Modifying a list: what gets copied?
Kohske Takahashi