search for: sxpinfo_struct

Displaying 2 results from an estimated 2 matches for "sxpinfo_struct".

2014 Aug 22
1
what are labels in struct sxpinfo_struct from Rinternals.h mean?
Dear Rdevelers, ? ? ?The following struct is in the Rinternals.h. I want to know ?the meanings of labels or names like "gp,mark,obj,named,trace....." . TKS! struct sxpinfo_struct { ? ? SEXPTYPE type ? ? ?: ?5;/* ==> (FUNSXP == 99) %% 2^5 == 3 == CLOSXP ? ? * -> warning: `type' is narrower than values ? ? * ? ? ? ? ? ? ?of its type ? ? * when SEXPTYPE was an enum */ ? ? unsigned int obj ? : ?1; ? ? unsigned int named : ?2; ? ? unsigned int gp ? ?: 16; ?...
2014 Mar 02
1
internal copying in R (soon to be released R-3.1.0
...y[1] #? Is there any function that returns its argument as a non-shared atomic but only copies if the argument was shared? Given an atomic vector x, what is the best official way to find out whether other symbols share the vector RAM? Querying NAMED() < 2 doesn't work because .Call sets sxpinfo_struct.named to 2. It even sets it to 2 if the argument to .Call was a never-named expression!? > named(1:3) [1] 2 And it seems to set it permanently, pure read-access can trigger copy-on-modify: > x <- integer(1e8) > system.time(x[1]<-1L) User System verstrichen...