Skip to content
Prev 53702 / 63421 Next

R history: Why 'L; in suffix character ‘L’ for integer constants?

On 16/06/2017 20:37, Jim Hester wrote:
There is more than one C standard, but that is none of them.
However, R checks that the compiler uses 32-bit ints in its build 
(configure and src/main/arithmetic.c) and documents that in R-admin . 
In any case, the C standard does not apply to the R language.

Also, int32_t

- postdates R (it was introduced in C99, a few OSes having it earlier)
- is optional in the C99 and C11 standards (?7.20.1.1 in C11).