Re: [Rd] Syntactically valid names

From: Hadley Wickham <hadley_at_rice.edu>
Date: Wed, 06 Jul 2011 08:58:02 -0400

> That's two different issues:
>
>> y <- list()
>> y$... <- 2
>> y$..2 <- 3
>> y$break <- 4
> Error: unexpected 'break' in "y$break"
>
> Notice that there is nothing _syntactically_ wrong with ... & friends as names:
>
>> quote(...<-4)
> ... <- 4
>
> It's the _evaluator_ that throws the error because the ...-name has a special interpretation.

Oh good point. Thanks for the clarification.

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed 06 Jul 2011 - 13:00:09 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 06 Jul 2011 - 13:50:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive