From haverty.peter at gene.com  Thu Jan 22 19:35:05 2015
From: haverty.peter at gene.com (Peter Haverty)
Date: Thu, 22 Jan 2015 10:35:05 -0800
Subject: [Rd] :: and ::: as .Primitives?
Message-ID: <CAGh0NYotjwDf5JYGcTggJWhWUSVsmBAuhbtGzwqsO+nXBpthyQ@mail.gmail.com>

Hi all,

When S4 methods are defined on base function (say, "match"), the
function becomes a method with the body "base::match(x,y)". A call to
such a function often spends more time doing "::" than in the function
itself.  I always assumed that "::" was a very low-level thing, but it
turns out to be a plain old function defined in base/R/namespace.R.
What would you all think about making "::" and ":::" .Primitives?  I
have submitted some examples, timings, and a patch to the R bug
tracker (https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16134).
I'd be very interested to hear your thoughts on the matter.

Regards,
Pete

____________________
Peter M. Haverty, Ph.D.
Genentech, Inc.
phaverty at gene.com



[Rd] :: and ::: as .Primitives?
Peter Haverty