[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-devel
Subject:    Re: [Rd] must .Call C functions return SEXP?
From:       Andrew Piskorski <atp () piskorski ! com>
Date:       2010-10-28 20:07:40
Message-ID: 20101028200740.GA60469 () piskorski ! com
[Download RAW message or body]

On Thu, Oct 28, 2010 at 10:59:26AM -0400, Simon Urbanek wrote:

> Because R assumes that you don't mess with the arguments, it also
> optimizes b to point to the same object as a which you then modify.

> I hope it sheds some light on it.

Indeed!  Thank you Simon, that was a thorough and illuminating answer.

(Now I have better understanding of how the machine works, and what
the dangerous sharp bits are.  :)

-- 
Andrew Piskorski <atp@piskorski.com>
http://www.piskorski.com/

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic