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

Luke Tierney luke@stat.umn.edu
Thu, 30 Oct 1997 10:18:44 -0600 (CST)


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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=