[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]
<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
- [Freeciv-Dev] Re: (PR#13460) consistent names for index-to-pointer lookups,
Jason Short <=
- [Freeciv-Dev] Re: (PR#13460) consistent names for index-to-pointer lookups, Benoit Hudson, 2005/07/12
- [Freeciv-Dev] Re: (PR#13460) consistent names for index-to-pointer lookups, Jason Short, 2005/07/12
- [Freeciv-Dev] Re: (PR#13460) consistent names for index-to-pointer lookups, Per I. Mathisen, 2005/07/12
- [Freeciv-Dev] Re: (PR#13460) consistent names for index-to-pointer lookups, Marko Lindqvist, 2005/07/12
- [Freeciv-Dev] Re: (PR#13460) consistent names for index-to-pointer lookups, Jason Short, 2005/07/12
- [Freeciv-Dev] Re: (PR#13460) consistent names for index-to-pointer lookups, Jason Short, 2005/07/12
- [Freeciv-Dev] (PR#13460) consistent names for index-to-pointer lookups, Jason Short, 2005/07/23
|
|