From Martin Maechler <maechler@stat.math.ethz.ch>  Thu Feb 26 09:31:36 1998
From: Martin Maechler <maechler@stat.math.ethz.ch> (Martin Maechler)
Date: Thu, 26 Feb 1998 10:31:36 +0100
Subject: attributes loss with arithmetic...
In-Reply-To: <199802252208.PAA11635@stout.atd.ucar.edu> (message from Steve
 Oncley on Wed, 25 Feb 1998 15:08:55 -0700 (MST))
Message-ID: <199802260931.KAA04501@sophie.ethz.ch>

>>>>> "Steve" == Steve Oncley <oncley@atd.ucar.edu> writes:

    Steve> During the last couple of months (at least) there has been a
    Steve> trickle of messages on R-help related to attributes (other than
    Steve> dim/dimnames) not being inherited.
    Steve> Example:
    Steve> 	x <- 1
    Steve> 	class(x) <- "test"
    Steve> 	class(x+1) [returns NULL, not "test"]

    Steve> I have not seen a response from anyone in the R-core about this
    Steve> issue.
Well, excuse us..
    Steve> Since our group uses locally-written code (in S+) that
    Steve> is object-oriented,  
    Steve> R is useless to us until this capability exists.
		^^^^^^^
pretty hard word;   
I understand however that you definitely want this working.

The reason, there was no answer is probably:
It is obviously something ``deep down in the bowels of the C code'' for R,
and "usually", these things are left to R&R for fixing.
On the other hand, Ross and Robert are always overloaded with work...

    Steve> Do any of you have this on your tasks-list, or should we
    Steve> <attempt> to add attribute inheriting on our own?

If you feel knowledgable to do it in C, we'll be more than glad for your
contribution... !

Martin Maechler <maechler@stat.math.ethz.ch>			<><
Seminar fuer Statistik, ETH-Zentrum SOL G1;	Sonneggstr.33
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
http://www.stat.math.ethz.ch/~maechler/


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


attributes loss with arithmetic...
Martin Maechler