Skip to content

Commit a6edf01

Browse files
author
ripley
committed
updates
git-svn-id: https://svn.r-project.org/R-dev-web/trunk@2146 c52295ea-58df-0310-926a-d16021944841
1 parent 7dd387f commit a6edf01

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

BDR_S4issues.txt

+12
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ especially of primitives.
2222
group generic but log2 is not. This is probably all history, but
2323
not at all obvious to end users.
2424

25+
[Update 2007-07-24: the groups have been harmonized and all of
26+
Math is now primitive. The help pages have been corrected.]
27+
2528

2629
2) Members of the Summary group have documented (and S3) arglist (...,
2730
na.rm = FALSE) and S4 arglist (x, ..., na.rm = FALSE).
@@ -31,6 +34,7 @@ especially of primitives.
3134

3235
Is this necessary?
3336

37+
[This is being addressed via implicit generics.]
3438

3539
3) trunc() is documented as a member of the S4 Math group (which has
3640
only one argument), but has been implemented with an implicit
@@ -51,6 +55,9 @@ especially of primitives.
5155
In R-devel the current definition is trunc(x, ...) and S3 dispatch
5256
is on the first argument.
5357

58+
[Now trunc() is a member of the S4 Math group and S4 methods can be
59+
set on trunc(x, ...). The S4 Math group cannot dispatch methods
60+
for the extra arguments of log() and trunc().]
5461

5562
4) S3 method dispatch on primitives tries hard to emulate a call to a
5663
closure, by setting up promises for the unevaluated and evaluated
@@ -63,6 +70,8 @@ especially of primitives.
6370

6471
Why is this thought not to be needed for S4 dispatch?
6572

73+
[It was necessary: I found an example in the wild where
74+
duplication did not happen, and have added code to do this.]
6675

6776
5) Does an S4 object have a class and is the object bit set?
6877

@@ -200,4 +209,7 @@ especially of primitives.
200209
namespace.
201210

202211

212+
[exp and log are now both primitive and so do now behave the same.]
213+
214+
203215
BDR 2007-04-30

0 commit comments

Comments
 (0)