R-beta: Re: "as.numeric" `mode' and `cast' should be kept separate.

Bill Venables (wvenable@attunga.stats.adelaide.edu.au)
Wed, 3 Jun 1998 23:47:31 +0930


Date: Wed, 3 Jun 1998 23:47:31 +0930
Message-Id: <9806031417.AA17108@attunga.stats.adelaide.edu.au>
From: Bill Venables <wvenable@attunga.stats.adelaide.edu.au>
To: Todd.Taylor@pnl.gov (Z. Todd Taylor)
Subject: R-beta: Re: "as.numeric" `mode' and `cast' should be kept separate.
In-Reply-To: <199806031400.HAA24783@aggie.pnl.gov>

Z. Todd Taylor writes:
 > 
 > I really like that idea!  But I have to nit-pick the suggested
 > implementation.  Instead of the deparse(substitute()) stuff,
 > just take a simple character string.  Else you can't do things
 > like
 > 
 >    x %cast.as% storage.mode(y)

OK, OK, I'll go with he flow.  We'll use Peter's and Todd's form
as the primary and if I want to have a lazy form, well, I know
how to make it...  :-)

Sometimes you will need it, but remember this is for compiled
code, the name of the entry point is in the overwhelming majority
of cases going to be a character constant, and the storage mode
is by that time is set in concrete, and one purpose I had in mind
was easy checking that it was the right cast being done.

Still, you guys win.  I'm happy with the advance if we take it.

(In fact I'm astounded.  I expected much heavier opposition than
this, I must say...)

 > --Todd
 > -- 
 > Z. Todd Taylor
 > Pacific Northwest National Laboratory
 > Todd.Taylor@pnl.gov
 > Why is the 'last time' previous to this time?

For the same reason that an `older woman' is never as old as an
`old woman'.  (or man). 

Bill.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._