From pengyu.ut at gmail.com  Sat Jan  9 22:36:41 2010
From: pengyu.ut at gmail.com (Peng Yu)
Date: Sat, 9 Jan 2010 15:36:41 -0600
Subject: [Rd] Is nested namespace supported?
In-Reply-To: <4B48EF17.1030601@dbmail.com>
References: <366c6f341001091253q1891f1beteacfe35fa578ea53@mail.gmail.com>
	<4B48EF17.1030601@dbmail.com>
Message-ID: <366c6f341001091336p1bf1d1aew773d10dcca4b8aa5@mail.gmail.com>

On Sat, Jan 9, 2010 at 3:03 PM, Romain Francois
<romain.francois at dbmail.com> wrote:
> 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:::"

Do you mean nested namespace is not supported in R?



[Rd] Is nested namespace supported?
Peng Yu