@@ -22,6 +22,9 @@ especially of primitives.
22
22
group generic but log2 is not. This is probably all history, but
23
23
not at all obvious to end users.
24
24
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
+
25
28
26
29
2) Members of the Summary group have documented (and S3) arglist (...,
27
30
na.rm = FALSE) and S4 arglist (x, ..., na.rm = FALSE).
@@ -31,6 +34,7 @@ especially of primitives.
31
34
32
35
Is this necessary?
33
36
37
+ [This is being addressed via implicit generics.]
34
38
35
39
3) trunc() is documented as a member of the S4 Math group (which has
36
40
only one argument), but has been implemented with an implicit
@@ -51,6 +55,9 @@ especially of primitives.
51
55
In R-devel the current definition is trunc(x, ...) and S3 dispatch
52
56
is on the first argument.
53
57
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().]
54
61
55
62
4) S3 method dispatch on primitives tries hard to emulate a call to a
56
63
closure, by setting up promises for the unevaluated and evaluated
@@ -63,6 +70,8 @@ especially of primitives.
63
70
64
71
Why is this thought not to be needed for S4 dispatch?
65
72
73
+ [It was necessary: I found an example in the wild where
74
+ duplication did not happen, and have added code to do this.]
66
75
67
76
5) Does an S4 object have a class and is the object bit set?
68
77
@@ -200,4 +209,7 @@ especially of primitives.
200
209
namespace.
201
210
202
211
212
+ [exp and log are now both primitive and so do now behave the same.]
213
+
214
+
203
215
BDR 2007-04-30
0 commit comments