Re: [Rd] assign(FALSE, TRUE)

2008-11-19 Thread Martin Maechler
PD == Peter Dalgaard [EMAIL PROTECTED] on Tue, 18 Nov 2008 15:07:04 +0100 writes: PD Martin Maechler wrote: PD == Peter Dalgaard [EMAIL PROTECTED] on Tue, 18 Nov 2008 00:00:40 +0100 writes: PD Martin Maechler wrote: But in spite of all that I agree that I'd

Re: [Rd] assign(FALSE, TRUE)

2008-11-19 Thread Wacek Kusnierczyk
Martin Maechler wrote: but notably not mainly by the above. I'd consider the backtick operator as -- very nice -- syntactic sugar for assign() and get(). And, for normal identifiers, foo - 1 `foo` - 1 assign(foo, 1) foo - 1 # same effect as above and foo

Re: [Rd] assign(FALSE, TRUE)

2008-11-18 Thread Rolf Turner
On 18/11/2008, at 11:11 AM, Martin Maechler wrote: snip Yes. I'd propose that R-core look into how to make assignment to a reserved word an error. That's good news. Thanks. cheers, Rolf Turner

Re: [Rd] assign(FALSE, TRUE)

2008-11-18 Thread Martin Maechler
PD == Peter Dalgaard [EMAIL PROTECTED] on Tue, 18 Nov 2008 00:00:40 +0100 writes: PD Martin Maechler wrote: But in spite of all that I agree that I'd have liked `FALSE` - whatever to signal an error about the fact that it is a reserved word. RT This is clearly

Re: [Rd] assign(FALSE, TRUE)

2008-11-18 Thread Peter Dalgaard
Martin Maechler wrote: PD == Peter Dalgaard [EMAIL PROTECTED] on Tue, 18 Nov 2008 00:00:40 +0100 writes: PD Martin Maechler wrote: But in spite of all that I agree that I'd have liked `FALSE` - whatever to signal an error about the fact that it is a reserved word.

Re: [Rd] assign(FALSE, TRUE)

2008-11-18 Thread Prof Brian Ripley
On Tue, 18 Nov 2008, Peter Dalgaard wrote: Martin Maechler wrote: PD == Peter Dalgaard [EMAIL PROTECTED] on Tue, 18 Nov 2008 00:00:40 +0100 writes: PD Martin Maechler wrote: But in spite of all that I agree that I'd have liked `FALSE` - whatever to signal an error about the

Re: [Rd] assign(FALSE, TRUE)

2008-11-17 Thread Martin Maechler
RT == Rolf Turner [EMAIL PROTECTED] on Tue, 18 Nov 2008 08:49:21 +1300 writes: RT It was recently pointed out by Wacek Kusnierczyk that RT although one is prevented from doing RT FALSE - TRUE RT one *can* do RT assign(FALSE,TRUE) RT and have an

Re: [Rd] assign(FALSE, TRUE)

2008-11-17 Thread Peter Dalgaard
Rolf Turner wrote: It was recently pointed out by Wacek Kusnierczyk that although one is prevented from doing FALSE - TRUE one *can* do assign(FALSE,TRUE) and have an object named ``FALSE'' with value TRUE in one's workspace. This apparently has no deleterious effects; e.g. doing

Re: [Rd] assign(FALSE, TRUE)

2008-11-17 Thread Peter Dalgaard
Martin Maechler wrote: But in spite of all that I agree that I'd have liked `FALSE` - whatever to signal an error about the fact that it is a reserved word. RT This is clearly not a very important issue, but it might RT bear some thinking about. Yes. I'd propose that R-core look