develooper Front page | perl.perl5.porters | Postings from July 2011

Re: [perl #95784] [PATCH] Let X<> within anchorifiable paragraphs be additional anchors.

Thread Previous | Thread Next
From:
Ronald J Kimball
Date:
July 29, 2011 08:55
Subject:
Re: [perl #95784] [PATCH] Let X<> within anchorifiable paragraphs be additional anchors.
Message ID:
20110729155532.GA49084@penkwe.pair.com
On Fri, Jul 29, 2011 at 09:05:32AM -0600, Karl Williamson wrote:
> I have some concerns about this whole idea. These concerns would go away 
> if the X<> were to create an anchor only if that anchor doesn't already 
> exist in the page.
> 
> It seems likely to me that someone would want to say
> 
>  =head2 foo
>  X<foo>
> 
>  Description of foo
> 
> and this patch, if I understand it correctly, would forbid this.

I have concerns too.  This patch overloads the meaning of the X<> tag.

I think it's likely someone would want to say:

=head2 foo

Description of foo

=head2 bar
X<foo>

Description of bar

where bar is related to foo, and so would be listed under foo in the index,
but should not be a target for a link to foo.


This functionality should be implemented with a new tag, not by adding
a meaning to the X<> tag that conflicts with the existing meaning.


Ronald

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About