Rcomplex
On Wed, 15 Dec 1999, Paul Gilbert wrote:
o `Rcomplex' is preferred to `complex' (a future reserved word
in C) for R complex objects passed to C.
I'm a bit confused here. Is "complex" or "Rcomplex" the future reserved
word in C (I thought "complex" already was, but I'm not a C programmer)
complex is not currently reserved, but it is in the draft stanadrd revision. (I might see the confusion. It does not say `to be passed to C', and it means after passing to C.)
and is this because R storage modes should or should not have names corresponding to C reserved words? I presume this means I should use something like storage.mode(z) <- if (is.R()) "Rcomplex" else "complex"
No! Use complex in interpreted R code and Rcomplex in C. We will shortly have compatibility headers for the C code that covers this. Foreign.Rd has not yet been updated to reflect this change, but the Writing R Extensions manual has. Brian
Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._