Re: [Rd] capturing value of C or Fortran function

2006-12-18 Thread Thomas Lumley
On Wed, 13 Dec 2006, Harris A. Jaffee wrote: > Re: src/main/dotcode.c:do_dotCode() > > The value, if there is one, of a function called by .C or .Fortran is not > captured, so one needs a wrapper. To avoid that, the user would have to > declare that there is a value, specify its type, and supply

Re: [Rd] capturing value of C or Fortran function

2006-12-13 Thread Hin-Tak Leung
Well, fortran subroutines don't really have return values (versus fortran functions, which do - as far as I know that's the only difference between fortran subroutines and functions). There is also a somewhat sticky matter, of C routines that returns fairly complex types, like pointers, strings.

[Rd] capturing value of C or Fortran function

2006-12-13 Thread Harris A. Jaffee
Re: src/main/dotcode.c:do_dotCode() The value, if there is one, of a function called by .C or .Fortran is not captured, so one needs a wrapper. To avoid that, the user would have to declare that there is a value, specify its type, and supply an R variable to hold the value. Presumably, all of th