From maechler at stat.math.ethz.ch  Sat Apr 19 23:25:55 2008
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Sat, 19 Apr 2008 23:25:55 +0200
Subject: [Rd] AddComment (gram.y)
In-Reply-To: <480A5A28.60302@stats.uwo.ca>
References: <20080419050915.GA1820@klutometis.wikitex.org>
	<4809D46D.2030308@stats.uwo.ca>
	<20080419185707.GA10684@klutometis.wikitex.org>
	<480A5A28.60302@stats.uwo.ca>
Message-ID: <18442.25443.49716.190470@stat.math.ethz.ch>

>>>>> "DM" == Duncan Murdoch <murdoch at stats.uwo.ca>
>>>>>     on Sat, 19 Apr 2008 16:46:32 -0400 writes:

    DM> Peter Danenberg wrote:

      >>> The source references achieve something similar.
      >>> 
    > Thanks, Duncan; it seems like SkipComment cannibalizes
    >> comments before they get to srcref, though.
    >> 
    >> I had to go back as far as 1999, actually, to find a
    >> version of gram.y that implemented AddComment; would
    >> anyone object to bringing it back?
    >> 
    DM> Yes, I would.  

and so would probably almost everyone in R-core.
We *did* think already back in the last millennium...
and removed them for a good reason
{IIRC, because there were always cases where they were attached
 to the wrong expression, and we were more or less convinced,
 there was no to do it "right" in all cases}.

Martin Maechler

    DM> Use the source refs.  They aren't
    DM> "cannibalized", they are still there, where the source
    DM> ref says they are.

    DM> Duncan Murdoch

    DM> ______________________________________________
    DM> R-devel at r-project.org mailing list
    DM> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] AddComment (gram.y)
Martin Maechler