Skip to content

[Rcpp-devel] Rcpp modules : help with the design

1 message · Romain Francois

#
Le 31/05/10 20:07, Romain Francois a ?crit :
Perhaps one idea would be this:

setGeneric( "::" )
setMethod( "::", "Module", function( pkg, name ){
	sprintf( "%s__%s", pkg at prefix, name )
} )

so that we can do something like:

setMethod( "foo", signature( x = yada::World , y = yada::Foo ), ... )

I think I'd prefer typing this over:

setMethod( "foo", signature( x = "yada__World", y = "yada__Foo"), ... )

But it may be too confusing ?

Romain