From rpeng at jhsph.edu  Fri Aug  5 14:39:49 2005
From: rpeng at jhsph.edu (Roger D. Peng)
Date: Fri, 05 Aug 2005 08:39:49 -0400
Subject: [Rd] object.size() bug?
In-Reply-To: <17139.22973.592057.275242@stat.math.ethz.ch>
References: <Pine.OSF.4.58.0508040019540.201601@odin.mdacc.tmc.edu>
	<17139.22973.592057.275242@stat.math.ethz.ch>
Message-ID: <42F35E15.4000105@jhsph.edu>

Would it make sense for 'object.size()' to do the same thing for 
external pointers as it does for environments?

-roger

Martin Maechler wrote:
>>>>>>"Paul" == Paul Roebuck <roebuck at odin.mdacc.tmc.edu>
>>>>>>    on Thu, 4 Aug 2005 00:29:03 -0500 (CDT) writes:
> 
> 
>     Paul> Can someone confirm the following as a problem:
> 
> Yes, I can.  No promiss for a fix in the very near future
> though.
> 
> Martin Maechler, ETH Zurich
> 
> 
>>>Can someone confirm the following as a problem:
>>>
>>>R> setClass("Foo", representation(.handle = "externalptr"))
>>>R> object.size(new("Foo"))
>>>Error in object.size(new("Foo")) : object.size: unknown type 22
>>>R> R.version.string
>>>[1] "R version 2.1.1, 2005-06-20"
>>>
>>>R-2.1.1/src/include/Rinternals.h
>>>#define EXTPTRSXP   22    /* external pointer */
>>>
>>>R-2.1.1/src/main/size.c:
>>>objectsize(SEXP s) has no case for external pointers
> 
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 

-- 
Roger D. Peng
http://www.biostat.jhsph.edu/~rpeng/



[Rd] object.size() bug?
Roger D. Peng