Skip to content
Prev 5779 / 10988 Next

[Rcpp-devel] [Rcpp Modules] Static functions

This is not supported currently. It might be in the future when someone finds time or funding. 

One thing that could be done is to create a simple wrapper function around it and expose this with the module. You wont get the associarion with the class though. 

double wrapper_myFunction(){
    return Foo::myFunction() ;
}

We might support direct syntactic sugar for exposing static functions later, but i'm not sure the concept of staric functions is supported by reference classes which is the texhnology we use to expose module classes. 

Romain

Le 9 mai 2013 ? 16:47, Julien Duvanel <julien.duvanel at epfl.ch> a ?crit :
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20130509/90a41333/attachment.html>