| Line 80... |
Line 80... |
| 80 |
C routines as \dQuote{function pointers} in C.
|
80 |
C routines as \dQuote{function pointers} in C.
|
| 81 |
This allows us to treat native routines and R functions
|
81 |
This allows us to treat native routines and R functions
|
| 82 |
in a similar manner, such as when passing an R function
|
82 |
in a similar manner, such as when passing an R function
|
| 83 |
to C code that makes callbacks to that function
|
83 |
to C code that makes callbacks to that function
|
| 84 |
at different points in its computation
|
84 |
at different points in its computation
|
| 85 |
(e.g., \code{\link[nls:nls]{nls}}).
|
85 |
(e.g., \code{\link[stats]{nls}}).
|
| 86 |
Additionally, we can resolve the symbol just once and
|
86 |
Additionally, we can resolve the symbol just once and
|
| 87 |
avoid resolving it repeatedly or using the internal
|
87 |
avoid resolving it repeatedly or using the internal
|
| 88 |
cache.
|
88 |
cache.
|
| 89 |
In the future, one may be able to treat \code{NativeSymbol}
|
89 |
In the future, one may be able to treat \code{NativeSymbol}
|
| 90 |
objects as directly callback objects.
|
90 |
objects as directly callback objects.
|