Re: [Rd] Is nested namespace supported?

From: Romain Francois <romain.francois_at_dbmail.com>
Date: Sat, 09 Jan 2010 22:03:19 +0100

On 01/09/2010 09:53 PM, Peng Yu wrote:
>

> Could somebody let me know if there is nested name space supported?

> For example, is it possible to define a function in the name space
> 'nested_namespace' which is nested in the name space 'some_namespace'?
>
> some_namespace:::nested_namespace:::a_function()
>
> I checked Section 1.6 of R-exts.pdf. It seems that nested namespace is
> not supported, right?

It is not even grammatically valid:

 > parse( text = "foo::bar::foobar" )
Error in parse(text = "foo::bar::foobar") :
   unexpected '::' in "foo::bar::"

 > parse( text = "foo:::bar:::foobar" )

Error in parse(text = "foo:::bar:::foobar") :

   unexpected ':::' in "foo:::bar:::"

Romain

-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/JOlc : External pointers with Rcpp
|- http://tr.im/JFqa : R Journal, Volume 1/2, December 2009
`- http://tr.im/IW9B : C++ exceptions at the R level

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sat 09 Jan 2010 - 21:08:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 10 Jan 2010 - 12:10:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive