Re: [PATCH 3/3] Remove varobj_language_string, languages and varobj_languages

Eli Zaretskii
2013-10-31T17:31:03Z

> Date: Thu, 31 Oct 2013 11:08:52 +0800
> From: Yao Qi <yao@codesourcery.com>
> CC: <tromey@redhat.com>, <gdb-patches@sourceware.org>
>
> On 10/30/2013 12:49 AM, Eli Zaretskii wrote:
> >> +found in @ref{Supported Languages,,Supported Languages}.
> > I'm curious: why use the same string twice in @ref? What did you want
> > to accomplish?
>
> I thought @ref needs three arguments, so I use the same string twice.

No, @ref needs only one argument. What you did has only one use case:
when you want the link display something other than the name of the
pointed-to node. Then you use the text which you want displayed as
the link. Of course, that text should be always different from the
node name.

> Looks @ref{Supported Languages} works as well.

I'd be mightily surprised if it didn't ;-)

Thanks.