Skip to content
Prev 22296 / 63424 Next

operator :: and symbols not in the namespace of a package with a namespace (PR#9279)

On 10/6/2006 10:44 AM, Luke Tierney wrote:
I think there would be a good reason if it was expensive to load 
datasets, but now it's cheap, so I don't think there's a good reason any 
more.
Right, the description I gave above is wrong, but I think the current 
behaviour is wrong too.  A reasonable alternative use for "::" is to 
specify where to go to look for a variable whose name may clash with 
another.  Avoiding the side effect of changing the search list is a very 
nice feature of it.

Is there a simple way to do a load of a package as if it was being 
attached, but without putting it into the search list?  If so, that's 
what I meant above :-), with the search taking place in the public 
environment of the package.

Duncan Murdoch