[Rd] slots of type "double"

2007-11-13 Thread hpages
Hi, Any idea why S4 doesn't allow slots of type "double"? > setClass("A", representation(a="double")) Error in makePrototypeFromClassDef(properties, ClassDef, immediate, where) : in making the prototype for class "A" elements of the prototype failed to match the corresponding slot class:

Re: [Rd] slots of type "double"

2007-11-13 Thread Simon Urbanek
On Nov 13, 2007, at 3:36 AM, [EMAIL PROTECTED] wrote: > Any idea why S4 doesn't allow slots of type "double"? > Type (as in storage type and "double" is a storage type) has nothing to do with classes. You cannot create slots for types, only for classes. >> setClass("A", representation(a="dou

Re: [Rd] slots of type "double"

2007-11-13 Thread Prof Brian Ripley
On Tue, 13 Nov 2007, Simon Urbanek wrote: > > On Nov 13, 2007, at 3:36 AM, [EMAIL PROTECTED] wrote: > >> Any idea why S4 doesn't allow slots of type "double"? >> > > Type (as in storage type and "double" is a storage type) has nothing > to do with classes. You cannot create slots for types, only f

Re: [Rd] slots of type "double"

2007-11-13 Thread John Chambers
What's the proposal here? To eliminate "double" as a class? No objection from this corner. As I remember, it was put in early in the implementation of methods, when I was confused about what R intended in this area (well, I'm not totally unconfused even now). If this is the proposal, we coul

Re: [Rd] slots of type "double"

2007-11-13 Thread Prof Brian Ripley
On Tue, 13 Nov 2007, John Chambers wrote: > What's the proposal here? To eliminate "double" as a class? No objection Eliminate "double" and "single". > from this corner. As I remember, it was put in early in the implementation > of methods, when I was confused about what R intended in this a

Re: [Rd] slots of type "double"

2007-11-14 Thread Prof Brian Ripley
On Tue, 13 Nov 2007, Prof Brian Ripley wrote: > On Tue, 13 Nov 2007, John Chambers wrote: > >> What's the proposal here? To eliminate "double" as a class? No objection > > Eliminate "double" and "single". > >> from this corner. As I remember, it was put in early in the >> implementation of met

Re: [Rd] slots of type "double"

2007-11-14 Thread Martin Mächler
On Wed, November 14, 2007 09:09, Prof Brian Ripley wrote: > On Tue, 13 Nov 2007, Prof Brian Ripley wrote: > >> On Tue, 13 Nov 2007, John Chambers wrote: >> >>> What's the proposal here? To eliminate "double" as a class? No >>> objection >> >> Eliminate "double" and "single". >> >>> from this corn

Re: [Rd] slots of type "double"

2007-11-14 Thread Martin Maechler
still found a bit time for more remarks. > "MM" == Martin Mächler <[EMAIL PROTECTED]> > on Wed, 14 Nov 2007 14:23:12 +0100 (CET) writes: MM> On Wed, November 14, 2007 09:09, Prof Brian Ripley MM> wrote: >> On Tue, 13 Nov 2007, Prof Brian Ripley wrote: >> >>> On Tu

Re: [Rd] slots of type "double"

2007-11-15 Thread Prof Brian Ripley
In-line omments near the end: On Wed, 14 Nov 2007, Martin Maechler wrote: still found a bit time for more remarks. "MM" == Martin Mächler <[EMAIL PROTECTED]> on Wed, 14 Nov 2007 14:23:12 +0100 (CET) writes: MM> On Wed, November 14, 2007 09:09, Prof Brian Ripley MM> wrote: >> On