From takahashi.kohske at gmail.com  Thu May  2 14:31:38 2013
From: takahashi.kohske at gmail.com (Kohske Takahashi)
Date: Thu, 2 May 2013 21:31:38 +0900
Subject: [Rd] trace with reference class
In-Reply-To: <51813836.9080604@r-project.org>
References: <CAC-jPZpk4NZrrTOReeHXOTZOFxD7sC=8iDAunWeoRTzqYwv8cg@mail.gmail.com>
	<51813836.9080604@r-project.org>
Message-ID: <CAC-jPZq12o5TaL1bfDdPkDhzgWXAGGKvW1yvdiQxhjESZ2Eixw@mail.gmail.com>

I got it, thanks!

kohske

2013/5/2 John Chambers <jmc at r-project.org>:
> No intended change.  The trace method was not updated when reference class
> generators became functions.  Should be fixed now in r-devel and 3.0.0
> patched (rev 62699).
>
> Thanks for the catch.
>
> John
>
>
> On 4/29/13 11:30 PM, Kohske Takahashi wrote:
>>
>> Hi
>>
>> The final line of the example in ?setRefClass induces an error:
>>
>>> ## debugging all objects from class mEdit in method $undo()
>>> mEdit$trace(undo, browser)
>>
>> Error in envRefInferField(x, what, getClass(class(x)), selfEnv) :
>>    'undo' is not a valid field or method name for reference class
>> "refGeneratorSlot"
>>
>> $trace tries to embed the trace in the generator object (instead of
>> the generated object).
>> Has this functionality been removed?
>>
>> best,
>>
>> 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
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>



-- 
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] trace with reference class
Kohske Takahashi