Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2005:
[Freeciv-Dev] Re: (PR#13460) consistent names for index-to-pointer looku
Home

[Freeciv-Dev] Re: (PR#13460) consistent names for index-to-pointer looku

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#13460) consistent names for index-to-pointer lookups
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 12 Jul 2005 10:56:15 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13460 >

Jason Short wrote:

> For the function names, there are obviously several possibilities.  Any
> of the above naming schemes could be extended to all the functions.  I
> probably prefer index_to_xxx but that's mostly because the map code uses
> it and the map code already has its own naming scheme, so renaming
> index_to_tile would break that scheme.

Other acceptable possibilities are get_XXX_by_index and
XXX_get_by_index.  Note that "idx" is a deprecated shorthand for index
and "id" is inaccurate (according to my naming scheme, based on the map
code).

-jason





[Prev in Thread] Current Thread [Next in Thread]