From ripley@stats.ox.ac.uk  Sun Apr  4 18:04:53 1999
From: ripley@stats.ox.ac.uk (Prof Brian D Ripley)
Date: Sun, 4 Apr 1999 18:04:53 +0100 (BST)
Subject: "integer" mod ein .C/.Fortran call
Message-ID: <Pine.GSO.4.05.9904041755330.12670-100000@auk.stats>

I have just discovered that mode integer in C maps to int in C and integer
in Fortran, whereas it maps to long in C loaded in to S.  This seems
undocumented in R, and the base R code is not consistent in its usage, let
alone user packages.

Can those of you who have long != int tell us what your machines use, and
also if Fortran integer is equal to C int (which is assumed in a lot
of places).

I believe that on DEC Alpha S-PLUS uses 64-bit "integer", corresponding to
C long and Fortran integer.  I understand R is trying to use 32 bits for
R "integer", C int and Fortran integer.

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


"integer" mod ein .C/.Fortran call
Prof Brian D Ripley