From B.Rowlingson at lancaster.ac.uk  Fri Jan  7 13:13:25 2005
From: B.Rowlingson at lancaster.ac.uk (Barry Rowlingson)
Date: Fri Jan  7 13:13:28 2005
Subject: [Rd] Any plans for commenting out region via something like "
	/*	*/ "?
In-Reply-To: <x26529cxgx.fsf@biostat.ku.dk>
References: <1abe3fa905010702034c2e2799@mail.gmail.com>
	<x26529cxgx.fsf@biostat.ku.dk>
Message-ID: <41DE7CE5.2070407@lancaster.ac.uk>

Peter Dalgaard wrote:

> I don't think so. Personally, I'd rather work on getting the parser to
> behave properly in all cases on
> 
> if (FALSE){
> ...lots of lines...
> } 

  Including cases where "...lots of lines..." isn't syntactically correct?

e.g.

  if (FALSE) {
   if(foo){.... - do something here....
  }

You can currently make the 'if'd out bit a big string:

foo <- function(bar){
   if(FALSE){
"
Foo
if(foo){
"
   }
   return(99)
}

  - Ooh, its almost a python """string""". Of course you cant have 
quotes in it, but if you have an end-block-comment signifier of any sort 
you cant have that signifier in your block anyway...

[R-1.9.1 seems to want backslash continuation characters inside 
multi-line quotes, R 2.0.0 doesn't]

Baz


[Rd] Any plans for commenting out region via something like " /* */ "?
Barry Rowlingson