Dear R experts,

In all R functions written in C one must unprotect
result before returning them:

  {
      ...
      UNPROTECT(1)  /* unprotecting `ans' */

      return ans;
  }

Why does one shure that memory occupied by `ans'
won't be used by R immediately after unprotecting?

Ok, is the next construction also absolutely safe?
  {
      ...
      UNPROTECT(1)  /* unprotecting `ans' */

      PROTECT( val = ans )
      ...
  }

Thanks a lot!


--
WBR,
Timur.

______________________________________________
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to