Re: [Rd] Using long long types in C++

2013-09-20 Thread Berend Hasselman
On 20-09-2013, at 03:47, Eric Malitz wrote: > I've been trying desperately to unsubscribe from this. Not that I don't > like R; but I only wanted help and then ended up on this email list. I've > put in more than one request to unsubscribe. > > __ > R

Re: [Rd] Using long long types in C++

2013-09-20 Thread Eric Malitz
I've been trying desperately to unsubscribe from this. Not that I don't like R; but I only wanted help and then ended up on this email list. I've put in more than one request to unsubscribe. On Thu, Sep 19, 2013 at 7:31 PM, Patrick Welche wrote: > On Fri, Sep 20, 2013 at 12:51:52AM +0200, rom..

Re: [Rd] Using long long types in C++

2013-09-19 Thread Romain Francois
Karl, Brian gave some insights already. I'm also reluctant to use int64_t because there does not seem to be a standard version of what the type is. Eg on OSX, int64_t is a typedef to long long. IIRC there are cases where it is a typedef to long ... At least with long an long long they are g

Re: [Rd] Using long long types in C++

2013-09-19 Thread Romain Francois
Le 20 sept. 2013 à 02:31, Patrick Welche a écrit : > On Fri, Sep 20, 2013 at 12:51:52AM +0200, rom...@r-enthusiasts.com wrote: >> In Rcpp we'd like to do something useful for types such as long long >> and unsigned long long. > ... >> But apparently this is still not enough and on some versions o

Re: [Rd] Using long long types in C++

2013-09-19 Thread Prof Brian Ripley
On 20/09/2013 03:04, Karl Millar wrote: Romain, Can you use int64_t and uint_t64 instead? IMHO that would be more useful than long long anyway. 'Writing R Extensions' does say 'Do be very careful with passing arguments between R, C and FORTRAN code. In particular, long in C will be 32-bit o

Re: [Rd] Using long long types in C++

2013-09-19 Thread Karl Millar
Romain, Can you use int64_t and uint_t64 instead? IMHO that would be more useful than long long anyway. Karl On Sep 19, 2013 5:33 PM, "Patrick Welche" wrote: > On Fri, Sep 20, 2013 at 12:51:52AM +0200, rom...@r-enthusiasts.com wrote: > > In Rcpp we'd like to do something useful for types such

Re: [Rd] Using long long types in C++

2013-09-19 Thread Patrick Welche
On Fri, Sep 20, 2013 at 12:51:52AM +0200, rom...@r-enthusiasts.com wrote: > In Rcpp we'd like to do something useful for types such as long long > and unsigned long long. ... > But apparently this is still not enough and on some versions of gcc > (e.g. 4.7 something), -pedantic still generates the

[Rd] Using long long types in C++

2013-09-19 Thread romain
Hello, In Rcpp we'd like to do something useful for types such as long long and unsigned long long. For example, supporting our usual wrap construct. We'd like to be able to "wrap" a long long, or perhaps a std::vector so that it is returned to the R side in something meaningful (we are cons