From luke@stat.umn.edu  Thu Oct 30 16:18:44 1997
From: luke@stat.umn.edu (Luke Tierney)
Date: Thu, 30 Oct 1997 10:18:44 -0600 (CST)
Subject: R-alpha: buglet in  return(invisible())  [R 0.50 and 0.60]
In-Reply-To: <x2hg9zuv7s.fsf@blueberry.kubism.ku.dk> from "Peter Dalgaard BSA" at Oct 30, 97 04:27:51 pm
Message-ID: <9710301618.AA04456@nokomis.stat.umn.edu>

Peter Dalgaard BSA wrote:
> 
> Luke Tierney <luke@stat.umn.edu> writes:
> 
> > Other languages take a different approach -- they allow a function
> > used for side effects to return no values, so there is nothing to
> > print -- this covers most though not all cases where invisible() is
> > used now.
> 
> If you think in terms of functionality as opposed to actually calling
> invisible(), a rather notorious exception would be "<-". It's a
> primitive, not a function, but it returns the evaluated right hand
> side without printing it.
> 

That's why I said "most" :-). Of course whether being able to write

	x<-y<-z

is a good thing or not ... :-)


-- 
Luke Tierney
University of Minnesota                      Phone:           612-625-7843
School of Statistics                         Fax:             612-624-8868
206 Church Street                            email:      luke@stat.umn.edu
Minneapolis, MN 55455 USA                    WWW:  http://www.stat.umn.edu
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


R-alpha: buglet in return(invisible()) [R 0.50 and 0.60]
Luke Tierney