Skip to content
Prev 5620 / 10988 Next

[Rcpp-devel] Datetime substraction bug ?

What. In c++, when we define an operator-(a, b), we are supposed to use 
it like this in code:

diff = a - b ;

What you agree with suggest that diff should be the result of b - a. 
This is non sense.

If we write a function, like "diff" in R, then why not give it whatever 
behavior suits the habits of R programmers.

But seriously, you are defending that a-b gives the result of b-a.

Le 02/04/13 17:34, Patrick Burns a ?crit :